Uses of Class
com.squareup.okhttp.OkHttpClient
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal.http |
-
Uses of OkHttpClient in com.squareup.okhttp
Methods in com.squareup.okhttp that return OkHttpClient Modifier and Type Method Description protected OkHttpClientHttpHandler. newOkHttpClient(Proxy proxy)protected OkHttpClientHttpsHandler. newOkHttpClient(Proxy proxy)OkHttpClientOkHttpClient. setAuthenticator(OkAuthenticator authenticator)Sets the authenticator used to respond to challenges from the remote web server or proxy server.OkHttpClientOkHttpClient. setConnectionPool(ConnectionPool connectionPool)Sets the connection pool used to recycle HTTP and HTTPS connections.OkHttpClientOkHttpClient. setCookieHandler(CookieHandler cookieHandler)Sets the cookie handler to be used to read outgoing cookies and write incoming cookies.OkHttpClientOkHttpClient. setFollowProtocolRedirects(boolean followProtocolRedirects)Configure this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.OkHttpClientOkHttpClient. setHostnameVerifier(HostnameVerifier hostnameVerifier)Sets the verifier used to confirm that response certificates apply to requested hostnames for HTTPS connections.OkHttpClientOkHttpClient. setProxy(Proxy proxy)Sets the HTTP proxy that will be used by connections created by this client.OkHttpClientOkHttpClient. setProxySelector(ProxySelector proxySelector)Sets the proxy selection policy to be used if noproxyis specified explicitly.OkHttpClientOkHttpClient. setResponseCache(ResponseCache responseCache)Sets the response cache to be used to read and write cached responses.OkHttpClientOkHttpClient. setSslSocketFactory(SSLSocketFactory sslSocketFactory)Sets the socket factory used to secure HTTPS connections.OkHttpClientOkHttpClient. setTransports(List<String> transports)Configure the transports used by this client to communicate with remote servers. -
Uses of OkHttpClient in com.squareup.okhttp.internal.http
Fields in com.squareup.okhttp.internal.http declared as OkHttpClient Modifier and Type Field Description protected OkHttpClientHttpEngine. clientConstructors in com.squareup.okhttp.internal.http with parameters of type OkHttpClient Constructor 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)