| Package | Description |
|---|---|
| okhttp3 | |
| okhttp3.internal |
| Modifier and Type | Method and Description |
|---|---|
OkHttpClient |
OkHttpClient.Builder.addInterceptor(Interceptor
|
OkHttpClient |
OkHttpClient.Builder.addNetworkInterceptor(Interceptor
|
OkHttpClient |
OkHttpClient.Builder.authenticator(Authenticator
Sets the authenticator used to respond to challenges from origin servers.
|
OkHttpClient |
OkHttpClient.Builder.cache(Cache
|
OkHttpClient |
OkHttpClient.Builder.certificatePinner(CertificatePinner
Sets the certificate pinner that constrains which certificates are trusted.
|
OkHttpClient |
OkHttpClient.Builder.connectionPool(ConnectionPool
Sets the connection pool used to recycle HTTP and HTTPS connections.
|
OkHttpClient |
OkHttpClient.Builder.connectionSpecs(List
|
OkHttpClient |
OkHttpClient.Builder.connectTimeout(long timeout, TimeUnit
Sets the default connect timeout for new connections.
|
OkHttpClient |
OkHttpClient.Builder.cookieJar(CookieJar
Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to outgoing HTTP requests.
|
OkHttpClient |
OkHttpClient.Builder.dispatcher(Dispatcher
Sets the dispatcher used to set policy and execute asynchronous requests.
|
OkHttpClient |
OkHttpClient.Builder.dns(Dns
Sets the DNS service used to lookup IP addresses for hostnames.
|
OkHttpClient |
OkHttpClient.Builder.followRedirects(boolean followRedirects)
Configure this client to follow redirects.
|
OkHttpClient |
OkHttpClient.Builder.followSslRedirects(boolean followProtocolRedirects)
Configure this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
|
OkHttpClient |
OkHttpClient.Builder.hostnameVerifier(HostnameVerifier
Sets the verifier used to confirm that response certificates apply to requested hostnames for HTTPS connections.
|
OkHttpClient |
OkHttpClient.newBuilder()
|
OkHttpClient |
OkHttpClient.Builder.protocols(List
Configure the protocols used by this client to communicate with remote servers.
|
OkHttpClient |
OkHttpClient.Builder.proxy(Proxy
Sets the HTTP proxy that will be used by connections created by this client.
|
OkHttpClient |
OkHttpClient.Builder.proxyAuthenticator(Authenticator
Sets the authenticator used to respond to challenges from proxy servers.
|
OkHttpClient |
OkHttpClient.Builder.proxySelector(ProxySelector
Sets the proxy selection policy to be used if no
proxy is specified explicitly.
|
OkHttpClient |
OkHttpClient.Builder.readTimeout(long timeout, TimeUnit
Sets the default read timeout for new connections.
|
OkHttpClient |
OkHttpClient.Builder.retryOnConnectionFailure(boolean retryOnConnectionFailure)
Configure this client to retry or not when a connectivity problem is encountered.
|
OkHttpClient |
OkHttpClient.Builder.socketFactory(SocketFactory
Sets the socket factory used to create connections.
|
OkHttpClient |
OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory
Sets the socket factory used to secure HTTPS connections.
|
OkHttpClient |
OkHttpClient.Builder.writeTimeout(long timeout, TimeUnit
Sets the default write timeout for new connections.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Internal.setCache(OkHttpClient
|