- get(Address) - Method in class com.squareup.okhttp.ConnectionPool
-
Returns a recycled connection to address, or null if no such connection exists.
- get(SSLSession) - Static method in class com.squareup.okhttp.Handshake
-
- get(String, List<Certificate>, List<Certificate>) - Static method in class com.squareup.okhttp.Handshake
-
- get(URI, String, Map<String, List<String>>) - Method in class com.squareup.okhttp.HttpResponseCache
-
- get(Request) - Method in class com.squareup.okhttp.HttpResponseCache
-
- get(Request) - Method in interface com.squareup.okhttp.OkResponseCache
-
- getAddress() - Method in class com.squareup.okhttp.Route
-
- getAuthenticator() - Method in class com.squareup.okhttp.Address
-
Returns the client's authenticator.
- getAuthenticator() - Method in class com.squareup.okhttp.OkHttpClient
-
- getConnectionCount() - Method in class com.squareup.okhttp.ConnectionPool
-
Returns total number of connections in the pool.
- getConnectionPool() - Method in class com.squareup.okhttp.OkHttpClient
-
- getConnectTimeout() - Method in class com.squareup.okhttp.OkHttpClient
-
Default connect timeout (in milliseconds).
- getCookieHandler() - Method in class com.squareup.okhttp.OkHttpClient
-
- getDefault() - Static method in class com.squareup.okhttp.ConnectionPool
-
- getDirectory() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getFollowProtocolRedirects() - Method in class com.squareup.okhttp.OkHttpClient
-
- getHandshake() - Method in class com.squareup.okhttp.Connection
-
- getHeaderValue() - Method in class com.squareup.okhttp.OkAuthenticator.Credential
-
- getHitCount() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getHostnameVerifier() - Method in class com.squareup.okhttp.Address
-
Returns the hostname verifier, or null if this is not an HTTPS
address.
- getHostnameVerifier() - Method in class com.squareup.okhttp.OkHttpClient
-
- getHttpConnectionCount() - Method in class com.squareup.okhttp.ConnectionPool
-
Returns total number of http connections in the pool.
- getHttpMinorVersion() - Method in class com.squareup.okhttp.Connection
-
Returns the minor HTTP version that should be used for future requests on
this connection.
- getIdleStartTimeNs() - Method in class com.squareup.okhttp.Connection
-
Returns the time in ns when this connection became idle.
- getMaxSize() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getNetworkCount() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getOkResponseCache() - Method in class com.squareup.okhttp.OkHttpClient
-
- getOwner() - Method in class com.squareup.okhttp.Connection
-
- getProtocols() - Method in class com.squareup.okhttp.Address
-
Returns the protocols the client supports.
- getProtocols() - Method in class com.squareup.okhttp.OkHttpClient
-
- getProxy() - Method in class com.squareup.okhttp.Address
-
Returns this address's explicitly-specified HTTP proxy, or null to
delegate to the HTTP client's proxy selector.
- getProxy() - Method in class com.squareup.okhttp.OkHttpClient
-
- getProxy() - Method in class com.squareup.okhttp.Route
-
Returns the
Proxy of this route.
- getProxySelector() - Method in class com.squareup.okhttp.OkHttpClient
-
- getReadTimeout() - Method in class com.squareup.okhttp.OkHttpClient
-
Default read timeout (in milliseconds).
- getRealm() - Method in class com.squareup.okhttp.OkAuthenticator.Challenge
-
Returns the protection space.
- getRequestCount() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getResponseCache() - Method in class com.squareup.okhttp.OkHttpClient
-
- getRoute() - Method in class com.squareup.okhttp.Connection
-
Returns the route used by this connection.
- getRoutesDatabase() - Method in class com.squareup.okhttp.OkHttpClient
-
- getScheme() - Method in class com.squareup.okhttp.OkAuthenticator.Challenge
-
Returns the authentication scheme, like Basic.
- getSize() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getSocket() - Method in class com.squareup.okhttp.Connection
-
Returns the socket that this connection uses, or null if the connection
is not currently connected.
- getSocketAddress() - Method in class com.squareup.okhttp.Route
-
- getSpdyConnectionCount() - Method in class com.squareup.okhttp.ConnectionPool
-
Returns total number of spdy connections in the pool.
- getSslSocketFactory() - Method in class com.squareup.okhttp.Address
-
Returns the SSL socket factory, or null if this is not an HTTPS
address.
- getSslSocketFactory() - Method in class com.squareup.okhttp.OkHttpClient
-
- getTransports() - Method in class com.squareup.okhttp.OkHttpClient
-
- getUriHost() - Method in class com.squareup.okhttp.Address
-
Returns the hostname of the origin server.
- getUriPort() - Method in class com.squareup.okhttp.Address
-
Returns the port of the origin server; typically 80 or 443.
- getWriteAbortCount() - Method in class com.squareup.okhttp.HttpResponseCache
-
- getWriteSuccessCount() - Method in class com.squareup.okhttp.HttpResponseCache
-
- setAuthenticator(OkAuthenticator) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the authenticator used to respond to challenges from the remote web
server or proxy server.
- setConnectionPool(ConnectionPool) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the connection pool used to recycle HTTP and HTTPS connections.
- setConnectTimeout(long, TimeUnit) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the default connect timeout for new connections.
- setCookieHandler(CookieHandler) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the cookie handler to be used to read outgoing cookies and write
incoming cookies.
- setFollowProtocolRedirects(boolean) - Method in class com.squareup.okhttp.OkHttpClient
-
Configure this client to follow redirects from HTTPS to HTTP and from HTTP
to HTTPS.
- setHostnameVerifier(HostnameVerifier) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the verifier used to confirm that response certificates apply to
requested hostnames for HTTPS connections.
- setHttpMinorVersion(int) - Method in class com.squareup.okhttp.Connection
-
- setOkResponseCache(OkResponseCache) - Method in class com.squareup.okhttp.OkHttpClient
-
- setOwner(Object) - Method in class com.squareup.okhttp.Connection
-
- setProtocols(List<Protocol>) - Method in class com.squareup.okhttp.OkHttpClient
-
Configure the protocols used by this client to communicate with remote
servers.
- setProxy(Proxy) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the HTTP proxy that will be used by connections created by this
client.
- setProxySelector(ProxySelector) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the proxy selection policy to be used if no
proxy
is specified explicitly.
- setReadTimeout(long, TimeUnit) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the default read timeout for new connections.
- setResponseCache(ResponseCache) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the response cache to be used to read and write cached responses.
- setSslSocketFactory(SSLSocketFactory) - Method in class com.squareup.okhttp.OkHttpClient
-
Sets the socket factory used to secure HTTPS connections.
- setTransports(List<String>) - Method in class com.squareup.okhttp.OkHttpClient
-
- share(Connection) - Method in class com.squareup.okhttp.ConnectionPool
-
Shares the SPDY connection with the pool.
- shouldPostpone(Route) - Method in class com.squareup.okhttp.RouteDatabase
-
Returns true if route has failed recently and should be avoided.
- sMaxAgeSeconds() - Method in class com.squareup.okhttp.CacheControl
-
The "s-maxage" directive is the max age for shared caches.
- spdyVariant - Variable in enum com.squareup.okhttp.Protocol
-
When true the protocol is binary framed and derived from SPDY.
- subtype() - Method in class com.squareup.okhttp.MediaType
-
Returns a specific media subtype, such as "plain" or "png", "mpeg",
"mp4" or "xml".