- serialNumber(String) - Method in class okhttp3.internal.tls.HeldCertificate.Builder
-
- 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.
- setHttp2ErrorCode(int) - Method in class okhttp3.mockwebserver.MockResponse
-
- 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.Dispatcher
-
Release any resources held by this dispatcher.
- shutdown() - Method in class okhttp3.mockwebserver.MockWebServer
-
- shutdown() - Method in class okhttp3.mockwebserver.QueueDispatcher
-
- socketFactory - Variable in class okhttp3.internal.tls.SslClient
-
- SocketPolicy - Enum in okhttp3.mockwebserver
-
What should be done with the incoming socket.
- SslClient - Class in okhttp3.internal.tls
-
Combines an SSL socket factory and trust manager, a pairing enough for OkHttp or MockWebServer to
create a secure connection.
- SslClient.Builder - Class in okhttp3.internal.tls
-
- sslContext - Variable in class okhttp3.internal.tls.SslClient
-
- 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.