- Cache - Class in com.squareup.okhttp
-
Caches HTTP and HTTPS responses to the filesystem so they may be reused,
saving time and bandwidth.
- Cache(File, long) - Constructor for class com.squareup.okhttp.Cache
-
- CacheControl - Class in com.squareup.okhttp
-
A Cache-Control header with cache directives from a server or client.
- charset() - Method in class com.squareup.okhttp.MediaType
-
Returns the charset of this media type, or null if this media type doesn't
specify a charset.
- charset(Charset) - Method in class com.squareup.okhttp.MediaType
-
Returns the charset of this media type, or defaultValue
if this
media type doesn't specify a charset.
- cipherSuite() - Method in class com.squareup.okhttp.Handshake
-
Returns a cipher suite name like "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA".
- clearOwner() - Method in class com.squareup.okhttp.Connection
-
Attempts to clears the owner of this connection.
- clone() - Method in class com.squareup.okhttp.OkHttpClient
-
Returns a shallow copy of this OkHttpClient.
- close() - Method in class com.squareup.okhttp.Cache
-
- close() - Method in class com.squareup.okhttp.Connection
-
- closeIfOwnedBy(Object) - Method in class com.squareup.okhttp.Connection
-
Closes this connection if it is currently owned by owner
.
- com.squareup.okhttp - package com.squareup.okhttp
-
- connect(int, int, TunnelRequest) - Method in class com.squareup.okhttp.Connection
-
- connected(Route) - Method in class com.squareup.okhttp.RouteDatabase
-
Deprecated.
Records success connecting to failedRoute
.
- Connection - Class in com.squareup.okhttp
-
The sockets and streams of an HTTP, HTTPS, or HTTPS+SPDY connection.
- Connection(ConnectionPool, Route) - Constructor for class com.squareup.okhttp.Connection
-
- ConnectionPool - Class in com.squareup.okhttp
-
Manages reuse of HTTP and SPDY connections for reduced network latency.
- ConnectionPool(int, long) - Constructor for class com.squareup.okhttp.ConnectionPool
-
- createURLStreamHandler(String) - Method in class com.squareup.okhttp.OkHttpClient
-
Deprecated.
moved to OkUrlFactory.createURLStreamHandler
.
- get(URI, String, Map<String, List<String>>) - Method in class com.squareup.okhttp.Cache
-
- get(Request) - Method in class com.squareup.okhttp.Cache
-
- 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(Request) - Method in interface com.squareup.okhttp.OkResponseCache
-
Deprecated.
- 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
-
- getCache() - 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.Cache
-
- getFollowProtocolRedirects() - Method in class com.squareup.okhttp.OkHttpClient
-
- getFollowSslRedirects() - Method in class com.squareup.okhttp.OkHttpClient
-
- getHandshake() - Method in class com.squareup.okhttp.Connection
-
- getHeaderValue() - Method in class com.squareup.okhttp.OkAuthenticator.Credential
-
Deprecated.
- getHitCount() - Method in class com.squareup.okhttp.Cache
-
- 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.Cache
-
- getNetworkCount() - Method in class com.squareup.okhttp.Cache
-
- 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
-
Deprecated.
Returns the protection space.
- getRequestCount() - Method in class com.squareup.okhttp.Cache
-
- 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
-
Deprecated.
removed from the public API in OkHttp 2.0.
- getScheme() - Method in class com.squareup.okhttp.OkAuthenticator.Challenge
-
Deprecated.
Returns the authentication scheme, like Basic
.
- getSize() - Method in class com.squareup.okhttp.Cache
-
- 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
-
- getTlsVersion() - Method in class com.squareup.okhttp.Route
-
- 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.Cache
-
- getWriteSuccessCount() - Method in class com.squareup.okhttp.Cache
-
- 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.
- setCache(Cache) - Method in class com.squareup.okhttp.OkHttpClient
-
- 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
-
- setFollowSslRedirects(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
-
- 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
-
Deprecated.
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
-
Deprecated.
removed from the public API in OkHttp 2.0.
- subtype() - Method in class com.squareup.okhttp.MediaType
-
Returns a specific media subtype, such as "plain" or "png", "mpeg",
"mp4" or "xml".