- selfSignedCertificate(KeyPair, String) - Method in class okhttp3.internal.SslContextBuilder
-
Generates a certificate for hostName containing keyPair's public key, signed by
keyPair's private key.
- setBody(Buffer) - Method in class okhttp3.mockwebserver.MockResponse
-
- setBody(String) - Method in class okhttp3.mockwebserver.MockResponse
-
Sets the response body to the UTF-8 encoded bytes of body.
- setBodyDelay(long, TimeUnit) - Method in class okhttp3.mockwebserver.MockResponse
-
Set the delayed time of the response body to delay.
- setBodyLimit(long) - Method in class okhttp3.mockwebserver.MockWebServer
-
Sets the number of bytes of the POST body to keep in memory to the given limit.
- setChunkedBody(Buffer, int) - Method in class okhttp3.mockwebserver.MockResponse
-
Sets the response body to body, chunked every maxChunkSize bytes.
- setChunkedBody(String, int) - Method in class okhttp3.mockwebserver.MockResponse
-
Sets the response body to the UTF-8 encoded bytes of body, chunked every maxChunkSize bytes.
- setDispatcher(Dispatcher) - Method in class okhttp3.mockwebserver.MockWebServer
-
Sets the dispatcher used to match incoming requests to mock responses.
- setFailFast(boolean) - Method in class okhttp3.mockwebserver.QueueDispatcher
-
- setFailFast(MockResponse) - Method in class okhttp3.mockwebserver.QueueDispatcher
-
- setHeader(String, Object) - Method in class okhttp3.mockwebserver.MockResponse
-
Removes all headers named name, then adds a new header with the name and value.
- setHeaders(Headers) - Method in class okhttp3.mockwebserver.MockResponse
-
Replaces all headers with those specified in headers.
- setProtocolNegotiationEnabled(boolean) - Method in class okhttp3.mockwebserver.MockWebServer
-
Sets whether ALPN is used on incoming HTTPS connections to negotiate a protocol like HTTP/1.1
or HTTP/2.
- setProtocols(List<Protocol>) - Method in class okhttp3.mockwebserver.MockWebServer
-
Indicates the protocols supported by ALPN on incoming HTTPS connections.
- setResponseCode(int) - Method in class okhttp3.mockwebserver.MockResponse
-
- setServerSocketFactory(ServerSocketFactory) - Method in class okhttp3.mockwebserver.MockWebServer
-
- setSocketPolicy(SocketPolicy) - Method in class okhttp3.mockwebserver.MockResponse
-
- setStatus(String) - Method in class okhttp3.mockwebserver.MockResponse
-
- shutdown() - Method in class okhttp3.mockwebserver.MockWebServer
-
- SocketPolicy - Enum in okhttp3.mockwebserver
-
What should be done with the incoming socket.
- SslContextBuilder - Class in okhttp3.internal
-
Constructs an SSL context for testing.
- SslContextBuilder(String) - Constructor for class okhttp3.internal.SslContextBuilder
-
- start() - Method in class okhttp3.mockwebserver.MockWebServer
-
Equivalent to start(0).
- start(int) - Method in class okhttp3.mockwebserver.MockWebServer
-
Starts the server on the loopback interface for the given port.
- start(InetAddress, int) - Method in class okhttp3.mockwebserver.MockWebServer
-
Starts the server on the given address and port.