- Cache - Class in okhttp3
-
Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
bandwidth.
- Cache(File, long) - Constructor for class okhttp3.Cache
-
- cache(Cache) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the response cache to be used to read and write cached responses.
- cache() - Method in class okhttp3.OkHttpClient
-
- CacheControl - Class in okhttp3
-
A Cache-Control header with cache directives from a server or client.
- cacheControl(CacheControl) - Method in class okhttp3.Request.Builder
-
Sets this request's Cache-Control
header, replacing any cache control headers already
present.
- cacheControl() - Method in class okhttp3.Request
-
Returns the cache control directives for this response.
- cacheControl() - Method in class okhttp3.Response
-
Returns the cache control directives for this response.
- CacheControl.Builder - Class in okhttp3
-
Builds a Cache-Control
request header.
- CacheInterceptor - Class in okhttp3.internal.cache
-
Serves requests from the cache and writes responses to the cache.
- CacheInterceptor(InternalCache) - Constructor for class okhttp3.internal.cache.CacheInterceptor
-
- CacheRequest - Interface in okhttp3.internal.cache
-
- cacheResponse - Variable in class okhttp3.internal.cache.CacheStrategy
-
The cached response to return or validate; or null if this call doesn't use a cache.
- cacheResponse(Response) - Method in class okhttp3.Response.Builder
-
- cacheResponse() - Method in class okhttp3.Response
-
Returns the raw response received from the cache.
- CacheStrategy - Class in okhttp3.internal.cache
-
Given a request and cached response, this figures out whether to use the network, the cache, or
both.
- CacheStrategy.Factory - Class in okhttp3.internal.cache
-
- Call - Interface in okhttp3
-
A call is a request that has been prepared for execution.
- call() - Method in interface okhttp3.Interceptor.Chain
-
- call - Variable in class okhttp3.internal.connection.StreamAllocation
-
- call() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- Call.Factory - Interface in okhttp3
-
- Callback - Interface in okhttp3
-
- callEnd(Call) - Method in class okhttp3.EventListener
-
Invoked immediately after a call has completely ended.
- callFailed(Call, IOException) - Method in class okhttp3.EventListener
-
Invoked when a call fails permanently.
- calls - Variable in class okhttp3.RecordingHostnameVerifier
-
- CallServerInterceptor - Class in okhttp3.internal.http
-
This is the last interceptor in the chain.
- CallServerInterceptor(boolean) - Constructor for class okhttp3.internal.http.CallServerInterceptor
-
- callStackTrace - Variable in class okhttp3.internal.connection.StreamAllocation.StreamAllocationReference
-
Captures the stack trace at the time the Call is executed or enqueued.
- callStart(Call) - Method in class okhttp3.EventListener
-
Invoked as soon as a call is enqueued or executed by a client.
- cancel() - Method in interface okhttp3.Call
-
Cancels the request, if possible.
- cancel() - Method in class okhttp3.internal.connection.RealConnection
-
- cancel() - Method in class okhttp3.internal.connection.StreamAllocation
-
- cancel() - Method in interface okhttp3.internal.http.HttpCodec
-
Cancel this stream.
- cancel() - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
Immediately closes the socket connection if it's currently held.
- cancel() - Method in class okhttp3.internal.http1.Http1Codec
-
- cancel() - Method in class okhttp3.internal.http2.Http2Codec
-
- CANCEL - Static variable in interface okhttp3.internal.http2.PushObserver
-
- cancel() - Method in class okhttp3.internal.ws.RealWebSocket
-
- cancel() - Method in interface okhttp3.WebSocket
-
Immediately and violently release resources held by this web socket, discarding any enqueued
messages.
- cancelAll() - Method in class okhttp3.Dispatcher
-
Cancel all calls currently enqueued or executing.
- canonicalizeHost(String) - Static method in class okhttp3.internal.Util
-
If host
is an IP address, this returns the IP address in canonical form.
- CertificateChainCleaner - Class in okhttp3.internal.tls
-
Computes the effective certificate chain from the raw array returned by Java's built in TLS APIs.
- CertificateChainCleaner() - Constructor for class okhttp3.internal.tls.CertificateChainCleaner
-
- certificatePinner() - Method in class okhttp3.Address
-
Returns this address's certificate pinner, or null if this is not an HTTPS address.
- CertificatePinner - Class in okhttp3
-
Constrains which certificates are trusted.
- certificatePinner(CertificatePinner) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the certificate pinner that constrains which certificates are trusted.
- certificatePinner() - Method in class okhttp3.OkHttpClient
-
- CertificatePinner.Builder - Class in okhttp3
-
Builds a configured certificate pinner.
- Challenge - Class in okhttp3
-
An RFC 7617 challenge.
- Challenge(String, String) - Constructor for class okhttp3.Challenge
-
- challenges() - Method in class okhttp3.Response
-
Returns the authorization challenges appropriate for this response's code.
- charset() - Method in class okhttp3.Challenge
-
Returns the charset that should be used to encode the credential.
- charset() - Method in class okhttp3.MediaType
-
Returns the charset of this media type, or null if this media type doesn't specify a charset.
- charset(Charset) - Method in class okhttp3.MediaType
-
Returns the charset of this media type, or defaultValue
if either this media type
doesn't specify a charset, of it its charset is unsupported by the current runtime.
- charStream() - Method in class okhttp3.ResponseBody
-
Returns the response as a character stream decoded with the charset of the Content-Type header.
- check(String, List<Certificate>) - Method in class okhttp3.CertificatePinner
-
Confirms that at least one of the certificates pinned for hostname
is in peerCertificates
.
- check(String, Certificate...) - Method in class okhttp3.CertificatePinner
-
- checkDuration(String, long, TimeUnit) - Static method in class okhttp3.internal.Util
-
- checkOffsetAndCount(long, long, long) - Static method in class okhttp3.internal.Util
-
- checkURLPermitted(URL) - Method in interface okhttp3.internal.URLFilter
-
Deprecated.
Check whether request to the provided URL is permitted to be issued.
- CipherSuite - Class in okhttp3
-
- cipherSuite() - Method in class okhttp3.Handshake
-
Returns the cipher suite used for the connection.
- cipherSuites(CipherSuite...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites(String...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites() - Method in class okhttp3.ConnectionSpec
-
Returns the cipher suites to use for a connection.
- clean(List<Certificate>, String) - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
Returns a cleaned chain for chain
.
- clean(List<Certificate>, String) - Method in class okhttp3.internal.tls.CertificateChainCleaner
-
- clear(String) - Method in class okhttp3.FakeDns
-
Clears the results for hostname
.
- CLEARTEXT - Static variable in class okhttp3.ConnectionSpec
-
Unencrypted, unauthenticated connections for http:
URLs.
- client - Variable in class okhttp3.internal.connection.ConnectInterceptor
-
- client - Variable in class okhttp3.internal.ws.RealWebSocket.Streams
-
- client() - Method in class okhttp3.OkUrlFactory
-
Deprecated.
- clone() - Method in interface okhttp3.Call
-
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
- clone() - Method in class okhttp3.OkUrlFactory
-
Deprecated.
Returns a copy of this stream handler factory that includes a shallow copy of the internal
HTTP client.
- close() - Method in class okhttp3.Cache
-
- close() - Method in class okhttp3.internal.cache.DiskLruCache
-
Closes this cache.
- close() - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
- close() - Method in class okhttp3.internal.http2.Http2Connection
-
Closes this connection.
- close(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Abnormally terminate this stream.
- close(int, String) - Method in class okhttp3.internal.ws.RealWebSocket
-
- close() - Method in class okhttp3.Response
-
Closes the response body.
- close() - Method in class okhttp3.ResponseBody
-
- close(int, String) - Method in interface okhttp3.WebSocket
-
Attempts to initiate a graceful shutdown of this web socket.
- closeLater(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Abnormally terminate this stream.
- closeQuietly(Closeable) - Static method in class okhttp3.internal.Util
-
Closes closeable
, ignoring any checked exceptions.
- closeQuietly(Socket) - Static method in class okhttp3.internal.Util
-
Closes socket
, ignoring any checked exceptions.
- closeQuietly(ServerSocket) - Static method in class okhttp3.internal.Util
-
Closes serverSocket
, ignoring any checked exceptions.
- code - Variable in class okhttp3.internal.http.StatusLine
-
- code(Response.Builder) - Method in class okhttp3.internal.Internal
-
- code(int) - Method in class okhttp3.Response.Builder
-
- code() - Method in class okhttp3.Response
-
Returns the HTTP status code.
- codec() - Method in class okhttp3.internal.connection.StreamAllocation
-
- commit() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Commits this edit so it is visible to readers.
- COMPATIBLE_TLS - Static variable in class okhttp3.ConnectionSpec
-
A backwards-compatible fallback connection for interop with obsolete servers.
- concat(String[], String) - Static method in class okhttp3.internal.Util
-
- configureSecureSocket(SSLSocket) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.Platform
-
Configure TLS extensions on sslSocket
for route
.
- connect(int, int, int, int, boolean, Call, EventListener) - Method in class okhttp3.internal.connection.RealConnection
-
- connect() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- connect(OkHttpClient) - Method in class okhttp3.internal.ws.RealWebSocket
-
- connected(Route) - Method in class okhttp3.internal.connection.RouteDatabase
-
Records success connecting to route
.
- connectEnd(Call, InetSocketAddress, Proxy, Protocol) - Method in class okhttp3.EventListener
-
Invoked immediately after a socket connection was attempted.
- connectFailed(Call, InetSocketAddress, Proxy, Protocol, IOException) - Method in class okhttp3.EventListener
-
Invoked when a connection attempt fails.
- connectFailed(URI, SocketAddress, IOException) - Method in class okhttp3.FakeProxySelector
-
- connectFailed(Route, IOException) - Method in class okhttp3.internal.connection.RouteSelector
-
Clients should invoke this method when they encounter a connectivity failure on a connection
returned by this route selector.
- ConnectInterceptor - Class in okhttp3.internal.connection
-
Opens a connection to the target server and proceeds to the next interceptor.
- ConnectInterceptor(OkHttpClient) - Constructor for class okhttp3.internal.connection.ConnectInterceptor
-
- Connection - Interface in okhttp3
-
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
- connection() - Method in interface okhttp3.Interceptor.Chain
-
Returns the connection the request will be executed on.
- connection() - Method in class okhttp3.internal.connection.StreamAllocation
-
- connection() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- connectionAcquired(Call, Connection) - Method in class okhttp3.EventListener
-
Invoked after a connection has been acquired for the call
.
- connectionBecameIdle(ConnectionPool, RealConnection) - Method in class okhttp3.internal.Internal
-
- connectionCount() - Method in class okhttp3.ConnectionPool
-
Returns total number of connections in the pool.
- connectionFailed(IOException) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
Reports a failure to complete a connection.
- ConnectionPool - Class in okhttp3
-
Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
- ConnectionPool() - Constructor for class okhttp3.ConnectionPool
-
Create a new connection pool with tuning parameters appropriate for a single-user application.
- ConnectionPool(int, long, TimeUnit) - Constructor for class okhttp3.ConnectionPool
-
- connectionPool(ConnectionPool) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the connection pool used to recycle HTTP and HTTPS connections.
- connectionPool() - Method in class okhttp3.OkHttpClient
-
- connectionReleased(Call, Connection) - Method in class okhttp3.EventListener
-
Invoked after a connection has been released for the call
.
- ConnectionShutdownException - Exception in okhttp3.internal.http2
-
Thrown when an HTTP/2 connection is shutdown (either explicitly or if the peer has sent a GOAWAY
frame) and an attempt is made to use the connection.
- ConnectionShutdownException() - Constructor for exception okhttp3.internal.http2.ConnectionShutdownException
-
- ConnectionSpec - Class in okhttp3
-
Specifies configuration for the socket connection that HTTP traffic travels through.
- ConnectionSpec.Builder - Class in okhttp3
-
- connectionSpecs() - Method in class okhttp3.Address
-
- connectionSpecs(List<ConnectionSpec>) - Method in class okhttp3.OkHttpClient.Builder
-
- connectionSpecs() - Method in class okhttp3.OkHttpClient
-
- ConnectionSpecSelector - Class in okhttp3.internal.connection
-
Handles the connection spec fallback strategy: When a secure socket connection fails due to a
handshake / protocol problem the connection may be retried with different protocols.
- ConnectionSpecSelector(List<ConnectionSpec>) - Constructor for class okhttp3.internal.connection.ConnectionSpecSelector
-
- connectSocket(Socket, InetSocketAddress, int) - Method in class okhttp3.internal.platform.Platform
-
- connectStart(Call, InetSocketAddress, Proxy) - Method in class okhttp3.EventListener
-
Invoked just prior to initiating a socket connection.
- connectTimeout - Variable in class okhttp3.curl.Main
-
- connectTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the default connect timeout for new connections.
- connectTimeoutMillis() - Method in interface okhttp3.Interceptor.Chain
-
- connectTimeoutMillis() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- connectTimeoutMillis() - Method in class okhttp3.OkHttpClient
-
Default connect timeout (in milliseconds).
- contentLength() - Method in class okhttp3.FormBody
-
- contentLength(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
- contentLength(Headers) - Static method in class okhttp3.internal.http.HttpHeaders
-
- contentLength() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentLength() - Method in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.RequestBody
-
- contentLength() - Method in class okhttp3.ResponseBody
-
- contentType() - Method in class okhttp3.FormBody
-
- contentType() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentType() - Method in class okhttp3.MultipartBody
-
- contentType() - Method in class okhttp3.RequestBody
-
Returns the Content-Type header for this body.
- contentType() - Method in class okhttp3.ResponseBody
-
- Cookie - Class in okhttp3
-
- Cookie.Builder - Class in okhttp3
-
Builds a cookie.
- CookieJar - Interface in okhttp3
-
Provides policy and persistence for HTTP cookies.
- cookieJar(CookieJar) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
outgoing HTTP requests.
- cookieJar() - Method in class okhttp3.OkHttpClient
-
- create(Call) - Method in interface okhttp3.EventListener.Factory
-
- create(FileSystem, File, int, int, long) - Static method in class okhttp3.internal.cache.DiskLruCache
-
Create a cache which will reside in directory
.
- create(RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- create(Headers, RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- create(MediaType, String) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content
.
- create(MediaType, ByteString) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content
.
- create(MediaType, byte[]) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content
.
- create(MediaType, byte[], int, int) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content
.
- create(MediaType, File) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits the content of file
.
- create(MediaType, String) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content
.
- create(MediaType, byte[]) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content
.
- create(MediaType, long, BufferedSource) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content
.
- createFormData(String, String) - Static method in class okhttp3.MultipartBody.Part
-
- createFormData(String, String, RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- createRequestBody(Request, long) - Method in interface okhttp3.internal.http.HttpCodec
-
Returns an output stream where the request body can be streamed.
- createRequestBody(Request, long) - Method in class okhttp3.internal.http1.Http1Codec
-
- createRequestBody(Request, long) - Method in class okhttp3.internal.http2.Http2Codec
-
- createURLStreamHandler(String) - Method in class okhttp3.OkUrlFactory
-
Deprecated.
- Credentials - Class in okhttp3
-
Factory for HTTP authorization credentials.
- data - Variable in class okhttp3.curl.Main
-
- decodeHexDigit(char) - Static method in class okhttp3.internal.Util
-
- deduplicate(ConnectionPool, Address, StreamAllocation) - Method in class okhttp3.internal.Internal
-
- DEFAULT - Static variable in class okhttp3.CertificatePinner
-
- DEFAULT - Static variable in interface okhttp3.logging.HttpLoggingInterceptor.Logger
-
- defaultPort(String) - Static method in class okhttp3.HttpUrl
-
Returns 80 if scheme.equals("http")
, 443 if scheme.equals("https")
and -1
otherwise.
- delete() - Method in class okhttp3.Cache
-
Closes the cache and deletes all of its stored values.
- delete() - Method in class okhttp3.internal.cache.DiskLruCache
-
Closes the cache and deletes all of its stored values.
- delete(File) - Method in interface okhttp3.internal.io.FileSystem
-
Deletes file
if it exists.
- delete(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- delete(RequestBody) - Method in class okhttp3.Request.Builder
-
- delete() - Method in class okhttp3.Request.Builder
-
- deleteContents(File) - Method in interface okhttp3.internal.io.FileSystem
-
Recursively delete the contents of directory
.
- deleteContents(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- delimiterOffset(String, int, int, String) - Static method in class okhttp3.internal.Util
-
Returns the index of the first character in input
that contains a character in delimiters
.
- delimiterOffset(String, int, int, char) - Static method in class okhttp3.internal.Util
-
Returns the index of the first character in input
that is delimiter
.
- DIGEST - Static variable in class okhttp3.MultipartBody
-
This type is syntactically identical to "multipart/mixed", but the semantics are different.
- directory() - Method in class okhttp3.Cache
-
- discard(Source, int, TimeUnit) - Static method in class okhttp3.internal.Util
-
Attempts to exhaust source
, returning true if successful.
- DISCARD_STREAM_TIMEOUT_MILLIS - Static variable in interface okhttp3.internal.http.HttpCodec
-
The timeout to use while discarding a stream of input data.
- disconnect() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- DiskLruCache - Class in okhttp3.internal.cache
-
A cache that uses a bounded amount of space on a filesystem.
- DiskLruCache.Editor - Class in okhttp3.internal.cache
-
Edits the values for an entry.
- DiskLruCache.Snapshot - Class in okhttp3.internal.cache
-
A snapshot of the values for an entry.
- Dispatcher - Class in okhttp3
-
Policy on when async requests are executed.
- Dispatcher(ExecutorService) - Constructor for class okhttp3.Dispatcher
-
- Dispatcher() - Constructor for class okhttp3.Dispatcher
-
- dispatcher(Dispatcher) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the dispatcher used to set policy and execute asynchronous requests.
- dispatcher() - Method in class okhttp3.OkHttpClient
-
- dns() - Method in class okhttp3.Address
-
Returns the service that will be used to resolve IP addresses for hostnames.
- Dns - Interface in okhttp3
-
A domain name service that resolves IP addresses for host names.
- dns(Dns) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the DNS service used to lookup IP addresses for hostnames.
- dns() - Method in class okhttp3.OkHttpClient
-
- dnsEnd(Call, String, List<InetAddress>) - Method in class okhttp3.EventListener
-
Invoked immediately after a DNS lookup.
- dnsStart(Call, String) - Method in class okhttp3.EventListener
-
Invoked just prior to a DNS lookup.
- domain(String) - Method in class okhttp3.Cookie.Builder
-
Set the domain pattern for this cookie.
- domain() - Method in class okhttp3.Cookie
-
Returns the cookie's domain.
- edit(String) - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns an editor for the entry named key
, or null if another edit is in progress.
- edit() - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns an editor for this snapshot's entry, or null if either the entry has changed since
this snapshot was created or if another edit is in progress.
- EMPTY_BYTE_ARRAY - Static variable in class okhttp3.internal.Util
-
- EMPTY_REQUEST - Static variable in class okhttp3.internal.Util
-
- EMPTY_RESPONSE - Static variable in class okhttp3.internal.Util
-
- EMPTY_STRING_ARRAY - Static variable in class okhttp3.internal.Util
-
- encodedFragment(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedFragment() - Method in class okhttp3.HttpUrl
-
Returns this URL's encoded fragment, like "abc"
for http://host/#abc
.
- encodedName(int) - Method in class okhttp3.FormBody
-
- encodedPassword(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedPassword() - Method in class okhttp3.HttpUrl
-
Returns the password, or an empty string if none is set.
- encodedPath(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedPath() - Method in class okhttp3.HttpUrl
-
Returns the entire path of this URL encoded for use in HTTP resource resolution.
- encodedPathSegments() - Method in class okhttp3.HttpUrl
-
Returns a list of encoded path segments like ["a", "b", "c"]
for the URL http://host/a/b/c
.
- encodedQuery(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedQuery() - Method in class okhttp3.HttpUrl
-
Returns the query of this URL, encoded for use in HTTP resource resolution.
- encodedUsername(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedUsername() - Method in class okhttp3.HttpUrl
-
Returns the username, or an empty string if none is set.
- encodedValue(int) - Method in class okhttp3.FormBody
-
- enqueue(Callback) - Method in interface okhttp3.Call
-
Schedules the request to be executed at some point in the future.
- enqueueRequestCookies(Cookie...) - Method in class okhttp3.RecordingCookieJar
-
- ensureResourcesClosed() - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- equal(Object, Object) - Static method in class okhttp3.internal.Util
-
Returns true if two possibly-null objects are equal.
- equals(Object) - Method in class okhttp3.Address
-
- equals(Object) - Method in class okhttp3.CertificatePinner
-
- equals(Object) - Method in class okhttp3.Challenge
-
- equals(Object) - Method in class okhttp3.ConnectionSpec
-
- equals(Object) - Method in class okhttp3.Cookie
-
- equals(Object) - Method in class okhttp3.Handshake
-
- equals(Object) - Method in class okhttp3.Headers
-
Returns true if other
is a Headers
object with the same headers, with the same
casing, in the same order.
- equals(Object) - Method in class okhttp3.HttpUrl
-
- equals(Object) - Method in class okhttp3.internal.http2.Header
-
- equals(Object) - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
- equals(Object) - Method in class okhttp3.internal.tls.BasicTrustRootIndex
-
- equals(Object) - Method in class okhttp3.MediaType
-
- equals(Object) - Method in class okhttp3.Route
-
- equalsNonHost(Address, Address) - Method in class okhttp3.internal.Internal
-
- ErrorCode - Enum in okhttp3.internal.http2
-
- errorCode - Variable in exception okhttp3.internal.http2.StreamResetException
-
- EventListener - Class in okhttp3
-
Listener for metrics events.
- EventListener() - Constructor for class okhttp3.EventListener
-
- eventListener - Variable in class okhttp3.internal.connection.StreamAllocation
-
- eventListener() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- eventListener(EventListener) - Method in class okhttp3.OkHttpClient.Builder
-
Configure a single client scoped listener that will receive all analytic events
for this client.
- EventListener.Factory - Interface in okhttp3
-
Warning: This is a non-final API.
- eventListenerFactory(EventListener.Factory) - Method in class okhttp3.OkHttpClient.Builder
-
Configure a factory to provide per-call scoped listeners that will receive analytic events
for this client.
- eventListenerFactory() - Method in class okhttp3.OkHttpClient
-
- evictAll() - Method in class okhttp3.Cache
-
Deletes all values stored in the cache.
- evictAll() - Method in class okhttp3.ConnectionPool
-
Close and remove all idle connections in the pool.
- evictAll() - Method in class okhttp3.internal.cache.DiskLruCache
-
Deletes all stored values from the cache.
- execute(HttpUriRequest) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, ResponseHandler<? extends T>) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, ResponseHandler<? extends T>, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute() - Method in interface okhttp3.Call
-
Invokes the request immediately, and blocks until the response can be processed or is in
error.
- execute() - Method in class okhttp3.internal.NamedRunnable
-
- executorService() - Method in class okhttp3.Dispatcher
-
- exists(File) - Method in interface okhttp3.internal.io.FileSystem
-
Returns true if file
exists on the file system.
- exists(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- expiresAt(long) - Method in class okhttp3.Cookie.Builder
-
- expiresAt() - Method in class okhttp3.Cookie
-
- get(SSLSession) - Static method in class okhttp3.Handshake
-
- get(TlsVersion, CipherSuite, List<Certificate>, List<Certificate>) - Static method in class okhttp3.Handshake
-
- get(String) - Method in class okhttp3.Headers.Builder
-
Equivalent to build().get(name)
, but potentially faster.
- get(String) - Method in class okhttp3.Headers
-
Returns the last value corresponding to the specified field, or null.
- get(URL) - Static method in class okhttp3.HttpUrl
-
Returns an
HttpUrl
for
url
if its protocol is
http
or
https
, or
null if it has any other protocol.
- get(URI) - Static method in class okhttp3.HttpUrl
-
- get() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns a strategy to satisfy request
using the a cached response response
.
- get(String) - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns a snapshot of the entry named key
, or null if it doesn't exist is not currently
readable.
- get(Request) - Method in interface okhttp3.internal.cache.InternalCache
-
- get(Request, Proxy.Type) - Static method in class okhttp3.internal.http.RequestLine
-
Returns the request status line, like "GET / HTTP/1.1".
- get(Response) - Static method in class okhttp3.internal.http.StatusLine
-
- get(ConnectionPool, Address, StreamAllocation, Route) - Method in class okhttp3.internal.Internal
-
- get() - Static method in class okhttp3.internal.platform.Platform
-
- get() - Static method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
- get(X509TrustManager) - Static method in class okhttp3.internal.tls.CertificateChainCleaner
-
- get(X509Certificate...) - Static method in class okhttp3.internal.tls.CertificateChainCleaner
-
- get(String) - Static method in enum okhttp3.Protocol
-
Returns the protocol identified by protocol
.
- get() - Method in class okhttp3.Request.Builder
-
- getAll() - Method in class okhttp3.internal.connection.RouteSelector.Selection
-
- getApplicationBufferSize() - Method in class okhttp3.FakeSSLSession
-
- getCipherSuite() - Method in class okhttp3.FakeSSLSession
-
- getConnection() - Method in class okhttp3.internal.http2.Http2Stream
-
- getConnectionManager() - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- getConnectTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getCreationTime() - Method in class okhttp3.FakeSSLSession
-
- getDate(String) - Method in class okhttp3.Headers
-
Returns the last value corresponding to the specified field parsed as an HTTP date, or null if
either the field is absent or cannot be parsed as a date.
- getDirectory() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the directory where this cache stores its data.
- getEffectiveTldPlusOne(String) - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
Returns the effective top-level domain plus one (eTLD+1) by referencing the public suffix list.
- getErrorCode() - Method in class okhttp3.internal.http2.Http2Stream
-
Returns the reason why this stream was closed, or null if it closed normally or has not yet
been closed.
- getErrorStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns an input stream from the server in the case of error such as the requested file (txt,
htm, html) is not found on the remote server.
- getHeaderField(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns the value of the field at position
.
- getHeaderField(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns the value of the field corresponding to the fieldName
, or null if there is no
such field.
- getHeaderFieldKey(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaderFields() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHostnameVerifier() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- getHttpUrlChecked(String) - Method in class okhttp3.internal.Internal
-
- getId() - Method in class okhttp3.FakeSSLSession
-
- getId() - Method in class okhttp3.internal.http2.Http2Stream
-
- getInputStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getInstanceFollowRedirects() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getLastAccessedTime() - Method in class okhttp3.FakeSSLSession
-
- getLastConnectException() - Method in exception okhttp3.internal.connection.RouteException
-
- getLength(int) - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns the byte length of the value for index
.
- getLevel() - Method in class okhttp3.logging.HttpLoggingInterceptor
-
- getLocalCertificates() - Method in class okhttp3.FakeSSLSession
-
- getLocalPrincipal() - Method in class okhttp3.FakeSSLSession
-
- getMaxRequests() - Method in class okhttp3.Dispatcher
-
- getMaxRequestsPerHost() - Method in class okhttp3.Dispatcher
-
- getMaxSize() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the maximum number of bytes that this cache should use to store its data.
- getOutputStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getPacketBufferSize() - Method in class okhttp3.FakeSSLSession
-
- getParams() - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- getPeerCertificateChain() - Method in class okhttp3.FakeSSLSession
-
- getPeerCertificates() - Method in class okhttp3.FakeSSLSession
-
- getPeerHost() - Method in class okhttp3.FakeSSLSession
-
- getPeerPort() - Method in class okhttp3.FakeSSLSession
-
- getPeerPrincipal() - Method in class okhttp3.FakeSSLSession
-
- getPermission() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getPrefix() - Method in class okhttp3.internal.platform.Platform
-
Prefix used on custom headers.
- getProtocol() - Method in class okhttp3.FakeSSLSession
-
- getProtocol() - Method in class okhttp3.internal.http2.Http2Connection
-
The protocol as selected using ALPN.
- getReadTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestHeaders() - Method in class okhttp3.internal.http2.Http2Stream
-
- getRequestProperties() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestProperty(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponseCode() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponseMessage() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
Returns the negotiated protocol, or null if no protocol was negotiated.
- getSessionContext() - Method in class okhttp3.FakeSSLSession
-
- getSink() - Method in class okhttp3.internal.http2.Http2Stream
-
Returns a sink that can be used to write data to the peer.
- getSource(int) - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns the unbuffered stream with the value for index
.
- getSource() - Method in class okhttp3.internal.http2.Http2Stream
-
Returns a source that reads data from the peer.
- getSSLContext() - Method in class okhttp3.internal.platform.Platform
-
- getSSLSocketFactory() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- getStackTraceForCloseable(String) - Method in class okhttp3.internal.platform.Platform
-
Returns an object that holds a stack trace created at the moment this method is executed.
- getValue(String) - Method in class okhttp3.FakeSSLSession
-
- getValueNames() - Method in class okhttp3.FakeSSLSession
-
- handshake() - Method in interface okhttp3.Connection
-
Returns the TLS handshake used to establish this connection, or null if the connection is not
HTTPS.
- Handshake - Class in okhttp3
-
A record of a TLS handshake.
- handshake() - Method in class okhttp3.internal.connection.RealConnection
-
- handshake() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- handshake(Handshake) - Method in class okhttp3.Response.Builder
-
- handshake() - Method in class okhttp3.Response
-
Returns the TLS handshake of the connection that carried this response, or null if the response
was received without TLS.
- hasBody(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if the response must have a (possibly 0-length) body.
- hashCode() - Method in class okhttp3.Address
-
- hashCode() - Method in class okhttp3.CertificatePinner
-
- hashCode() - Method in class okhttp3.Challenge
-
- hashCode() - Method in class okhttp3.ConnectionSpec
-
- hashCode() - Method in class okhttp3.Cookie
-
- hashCode() - Method in class okhttp3.Handshake
-
- hashCode() - Method in class okhttp3.Headers
-
- hashCode() - Method in class okhttp3.HttpUrl
-
- hashCode() - Method in class okhttp3.internal.http2.Header
-
- hashCode() - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
- hashCode() - Method in class okhttp3.internal.tls.BasicTrustRootIndex
-
- hashCode() - Method in class okhttp3.MediaType
-
- hashCode() - Method in class okhttp3.Route
-
- hasMoreRoutes() - Method in class okhttp3.internal.connection.StreamAllocation
-
- hasNext() - Method in class okhttp3.internal.connection.RouteSelector
-
Returns true if there's another set of routes to attempt.
- hasNext() - Method in class okhttp3.internal.connection.RouteSelector.Selection
-
- hasVaryAll(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if a Vary header contains an asterisk.
- hasVaryAll(Headers) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if a Vary header contains an asterisk.
- head() - Method in class okhttp3.Request.Builder
-
- Header - Class in okhttp3.internal.http2
-
HTTP header: the name is an ASCII string, but the value can be UTF-8.
- Header(String, String) - Constructor for class okhttp3.internal.http2.Header
-
- Header(ByteString, String) - Constructor for class okhttp3.internal.http2.Header
-
- Header(ByteString, ByteString) - Constructor for class okhttp3.internal.http2.Header
-
- header(String, String) - Method in class okhttp3.Request.Builder
-
Sets the header named name
to value
.
- header(String) - Method in class okhttp3.Request
-
- header(String, String) - Method in class okhttp3.Response.Builder
-
Sets the header named name
to value
.
- header(String) - Method in class okhttp3.Response
-
- header(String, String) - Method in class okhttp3.Response
-
- headers - Variable in class okhttp3.curl.Main
-
- Headers - Class in okhttp3
-
The header fields of a single HTTP message.
- headers() - Method in class okhttp3.MultipartBody.Part
-
- headers(Headers) - Method in class okhttp3.Request.Builder
-
Removes all headers on this builder and adds headers
.
- headers() - Method in class okhttp3.Request
-
- headers(String) - Method in class okhttp3.Request
-
- headers(Headers) - Method in class okhttp3.Response.Builder
-
Removes all headers on this builder and adds headers
.
- headers(String) - Method in class okhttp3.Response
-
- headers() - Method in class okhttp3.Response
-
- Headers.Builder - Class in okhttp3
-
- hitCount() - Method in class okhttp3.Cache
-
- host(String) - Method in class okhttp3.HttpUrl.Builder
-
- host() - Method in class okhttp3.HttpUrl
-
- hostHeader(HttpUrl, boolean) - Static method in class okhttp3.internal.Util
-
- hostnameVerifier() - Method in class okhttp3.Address
-
Returns the hostname verifier, or null if this is not an HTTPS address.
- hostnameVerifier(HostnameVerifier) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the verifier used to confirm that response certificates apply to requested hostnames for
HTTPS connections.
- hostnameVerifier() - Method in class okhttp3.OkHttpClient
-
- hostOnly() - Method in class okhttp3.Cookie
-
Returns true if this cookie's domain should be interpreted as a single host name, or false if
it should be interpreted as a pattern.
- hostOnlyDomain(String) - Method in class okhttp3.Cookie.Builder
-
Set the host-only domain for this cookie.
- Http1Codec - Class in okhttp3.internal.http1
-
A socket connection that can be used to send HTTP/1.1 messages.
- Http1Codec(OkHttpClient, StreamAllocation, BufferedSource, BufferedSink) - Constructor for class okhttp3.internal.http1.Http1Codec
-
- Http2 - Class in okhttp3.internal.http2
-
- Http2Codec - Class in okhttp3.internal.http2
-
Encode requests and responses using HTTP/2 frames.
- Http2Codec(OkHttpClient, Interceptor.Chain, StreamAllocation, Http2Connection) - Constructor for class okhttp3.internal.http2.Http2Codec
-
- Http2Connection - Class in okhttp3.internal.http2
-
A socket connection to a remote peer.
- Http2Connection.Builder - Class in okhttp3.internal.http2
-
- Http2Connection.Listener - Class in okhttp3.internal.http2
-
Listener of streams and settings initiated by the peer.
- http2HeadersList(Request) - Static method in class okhttp3.internal.http2.Http2Codec
-
- Http2Stream - Class in okhttp3.internal.http2
-
A logical bidirectional stream.
- HTTP_CONTINUE - Static variable in class okhttp3.internal.http.StatusLine
-
- HTTP_PERM_REDIRECT - Static variable in class okhttp3.internal.http.StatusLine
-
- HTTP_TEMP_REDIRECT - Static variable in class okhttp3.internal.http.StatusLine
-
Numeric status code, 307: Temporary Redirect.
- httpCode - Variable in enum okhttp3.internal.http2.ErrorCode
-
- HttpCodec - Interface in okhttp3.internal.http
-
Encodes HTTP requests and decodes HTTP responses.
- HttpDate - Class in okhttp3.internal.http
-
Best-effort parser for HTTP dates.
- HttpHeaders - Class in okhttp3.internal.http
-
Headers and utilities for internal use by OkHttp.
- HttpLoggingInterceptor - Class in okhttp3.logging
-
An OkHttp interceptor which logs request and response information.
- HttpLoggingInterceptor() - Constructor for class okhttp3.logging.HttpLoggingInterceptor
-
- HttpLoggingInterceptor(HttpLoggingInterceptor.Logger) - Constructor for class okhttp3.logging.HttpLoggingInterceptor
-
- HttpLoggingInterceptor.Level - Enum in okhttp3.logging
-
- HttpLoggingInterceptor.Logger - Interface in okhttp3.logging
-
- HttpMethod - Class in okhttp3.internal.http
-
- httpOnly() - Method in class okhttp3.Cookie.Builder
-
- httpOnly() - Method in class okhttp3.Cookie
-
Returns true if this cookie should be limited to only HTTP APIs.
- httpStream() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- HttpUrl - Class in okhttp3
-
A uniform resource locator (URL) with a scheme of either http
or https
.
- HttpUrl.Builder - Class in okhttp3
-