Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.apache | |
com.squareup.okhttp.internal.http |
Modifier and Type | Method and Description |
---|---|
OkHttpClient |
OkHttpClient.setAuthenticator(OkAuthenticator authenticator)
Sets the authenticator used to respond to challenges from the remote web
server or proxy server.
|
OkHttpClient |
OkHttpClient.setConnectionPool(ConnectionPool connectionPool)
Sets the connection pool used to recycle HTTP and HTTPS connections.
|
OkHttpClient |
OkHttpClient.setCookieHandler(CookieHandler cookieHandler)
Sets the cookie handler to be used to read outgoing cookies and write
incoming cookies.
|
OkHttpClient |
OkHttpClient.setFollowProtocolRedirects(boolean followProtocolRedirects)
Configure this client to follow redirects from HTTPS to HTTP and from HTTP
to HTTPS.
|
OkHttpClient |
OkHttpClient.setHostnameVerifier(HostnameVerifier hostnameVerifier)
Sets the verifier used to confirm that response certificates apply to
requested hostnames for HTTPS connections.
|
OkHttpClient |
OkHttpClient.setProxy(Proxy proxy)
Sets the HTTP proxy that will be used by connections created by this
client.
|
OkHttpClient |
OkHttpClient.setProxySelector(ProxySelector proxySelector)
Sets the proxy selection policy to be used if no
proxy
is specified explicitly. |
OkHttpClient |
OkHttpClient.setResponseCache(ResponseCache responseCache)
Sets the response cache to be used to read and write cached responses.
|
OkHttpClient |
OkHttpClient.setSslSocketFactory(SSLSocketFactory sslSocketFactory)
Sets the socket factory used to secure HTTPS connections.
|
OkHttpClient |
OkHttpClient.setTransports(List<String> transports)
Configure the transports used by this client to communicate with remote
servers.
|
Modifier and Type | Field and Description |
---|---|
protected OkHttpClient |
OkApacheClient.client |
Constructor and Description |
---|
OkApacheClient(OkHttpClient client) |
Modifier and Type | Field and Description |
---|---|
protected OkHttpClient |
HttpEngine.client |
Constructor and Description |
---|
HttpEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBodyOut) |
HttpsEngine(OkHttpClient client,
Policy policy,
String method,
RawHeaders requestHeaders,
Connection connection,
com.squareup.okhttp.internal.http.RetryableOutputStream requestBody) |
HttpsURLConnectionImpl(URL url,
OkHttpClient client) |
HttpURLConnectionImpl(URL url,
OkHttpClient client) |
Copyright © 2014. All rights reserved.