- abort() - Method in class okhttp3.Cache.CacheRequestImpl
-
- abort() - Method in interface okhttp3.internal.cache.CacheRequest
-
- abort() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Aborts this edit.
- abortQuietly(DiskLruCache.Editor) - Method in class okhttp3.Cache
-
- abortUnlessCommitted() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
- AbstractSource() - Constructor for class okhttp3.internal.http1.Http1Codec.AbstractSource
-
- ACCEPT_MAGIC - Static variable in class okhttp3.internal.ws.WebSocketProtocol
-
Magic value which must be appended to the key in a response header.
- acceptHeader(String) - Static method in class okhttp3.internal.ws.WebSocketProtocol
-
- ackSettings() - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- ackSettings() - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
HTTP/2 only.
- acquire(RealConnection, boolean) - Method in class okhttp3.internal.connection.StreamAllocation
-
Use this allocation to hold connection
.
- activeWriter - Variable in class okhttp3.internal.ws.WebSocketWriter
-
- add(String, String...) - Method in class okhttp3.CertificatePinner.Builder
-
Pins certificates for pattern
.
- add(String, String) - Method in class okhttp3.FormBody.Builder
-
- add(String) - Method in class okhttp3.Headers.Builder
-
Add an header line containing a field name, a literal colon, and a value.
- add(String, String) - Method in class okhttp3.Headers.Builder
-
Add a field with the specified value.
- addBytesToWriteWindow(long) - Method in class okhttp3.internal.http2.Http2Connection
-
delta
will be negative if a settings frame initial window is smaller than the last.
- addBytesToWriteWindow(long) - Method in class okhttp3.internal.http2.Http2Stream
-
delta
will be negative if a settings frame initial window is smaller than the last.
- addCode(int, int, byte) - Method in class okhttp3.internal.http2.Huffman
-
- addConnectException(IOException) - Method in exception okhttp3.internal.connection.RouteException
-
- addEncoded(String, String) - Method in class okhttp3.FormBody.Builder
-
- addEncodedPathSegment(String) - Method in class okhttp3.HttpUrl.Builder
-
- addEncodedPathSegments(String) - Method in class okhttp3.HttpUrl.Builder
-
Adds a set of encoded path segments separated by a slash (either \
or /
).
- addEncodedQueryParameter(String, String) - Method in class okhttp3.HttpUrl.Builder
-
Adds the pre-encoded query parameter to this URL's query string.
- addFormDataPart(String, String) - Method in class okhttp3.MultipartBody.Builder
-
Add a form data part to the body.
- addFormDataPart(String, String, RequestBody) - Method in class okhttp3.MultipartBody.Builder
-
Add a form data part to the body.
- addHeader(String, String) - Method in class okhttp3.Request.Builder
-
Adds a header with name
and value
.
- addHeader(String, String) - Method in class okhttp3.Response.Builder
-
Adds a header with name
and value
.
- addInterceptor(Interceptor) - Method in class okhttp3.OkHttpClient.Builder
-
- addLenient(String) - Method in class okhttp3.Headers.Builder
-
Add a header line without any validation.
- addLenient(String, String) - Method in class okhttp3.Headers.Builder
-
Add a field with the specified value without any validation.
- addLenient(Headers.Builder, String) - Method in class okhttp3.internal.Internal
-
- addLenient(Headers.Builder, String, String) - Method in class okhttp3.internal.Internal
-
- addNetworkInterceptor(Interceptor) - Method in class okhttp3.OkHttpClient.Builder
-
- addPart(RequestBody) - Method in class okhttp3.MultipartBody.Builder
-
Add a part to the body.
- addPart(Headers, RequestBody) - Method in class okhttp3.MultipartBody.Builder
-
Add a part to the body.
- addPart(MultipartBody.Part) - Method in class okhttp3.MultipartBody.Builder
-
Add a part to the body.
- addPathSegment(String) - Method in class okhttp3.HttpUrl.Builder
-
- addPathSegments(String) - Method in class okhttp3.HttpUrl.Builder
-
Adds a set of path segments separated by a slash (either \
or /
).
- addPathSegments(String, boolean) - Method in class okhttp3.HttpUrl.Builder
-
- addProxy(Proxy) - Method in class okhttp3.FakeProxySelector
-
- addQueryParameter(String, String) - Method in class okhttp3.HttpUrl.Builder
-
Encodes the query parameter using UTF-8 and adds it to this URL's query string.
- addRequestProperty(String, String) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- addRequestProperty(String, String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- Address - Class in okhttp3
-
A specification for a connection to an origin server.
- Address(String, int, Dns, SocketFactory, SSLSocketFactory, HostnameVerifier, CertificatePinner, Authenticator, Proxy, List<Protocol>, List<ConnectionSpec>, ProxySelector) - Constructor for class okhttp3.Address
-
- address - Variable in class okhttp3.internal.connection.RouteSelector
-
- address - Variable in class okhttp3.internal.connection.StreamAllocation
-
- address - Variable in class okhttp3.Route
-
- address() - Method in class okhttp3.Route
-
- addSuppressedExceptionMethod - Static variable in exception okhttp3.internal.connection.RouteException
-
- addSuppressedIfPossible(IOException, IOException) - Method in exception okhttp3.internal.connection.RouteException
-
- adjustDynamicTableByteCount() - Method in class okhttp3.internal.http2.Hpack.Reader
-
- adjustDynamicTableByteCount() - Method in class okhttp3.internal.http2.Hpack.Writer
-
- afterHandshake(SSLSocket) - Method in class okhttp3.internal.platform.JdkWithJettyBootPlatform
-
- afterHandshake(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
- ageSeconds - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
-
Age of the cached response.
- allEnabledCipherSuites() - Method in class okhttp3.ConnectionSpec.Builder
-
- allEnabledTlsVersions() - Method in class okhttp3.ConnectionSpec.Builder
-
- allocate(int) - Method in class okhttp3.FakeDns
-
Allocates and returns count
fake addresses like [255.0.0.100, 255.0.0.101].
- allocationLimit - Variable in class okhttp3.internal.connection.RealConnection
-
The maximum number of concurrent streams that can be carried by this connection.
- allocations - Variable in class okhttp3.internal.connection.RealConnection
-
Current streams carried by this connection.
- allSubjectAltNames(X509Certificate) - Static method in class okhttp3.internal.tls.OkHostnameVerifier
-
- alpnProtocolNames(List<Protocol>) - Static method in class okhttp3.internal.platform.Platform
-
- ALT_DNS_NAME - Static variable in class okhttp3.internal.tls.OkHostnameVerifier
-
- ALT_IPA_NAME - Static variable in class okhttp3.internal.tls.OkHostnameVerifier
-
- alternateService(int, String, ByteString, String, int, long) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- alternateService(int, String, ByteString, String, int, long) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
HTTP/2 only.
- ALTERNATIVE - Static variable in class okhttp3.MultipartBody
-
The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the
semantics are different.
- ANY_SEQUENCE_NUMBER - Static variable in class okhttp3.internal.cache.DiskLruCache
-
- appendingSink(File) - Method in interface okhttp3.internal.io.FileSystem
-
Writes to file
, appending if data is already present.
- appendingSink(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- appendQuotedString(StringBuilder, String) - Static method in class okhttp3.MultipartBody
-
Appends a quoted-string to a StringBuilder.
- apply(SSLSocket, boolean) - Method in class okhttp3.ConnectionSpec
-
Applies this spec to sslSocket
.
- apply(ConnectionSpec, SSLSocket, boolean) - Method in class okhttp3.internal.Internal
-
- apply(Statement, Description) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- applyAndAckSettings(Settings) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- applyAndAckSettings(Settings) - Method in class okhttp3.internal.http2.Http2Writer
-
Applies peerSettings
and then sends a settings ACK.
- APPROVED_CIPHER_SUITES - Static variable in class okhttp3.ConnectionSpec
-
- appVersion - Variable in class okhttp3.internal.cache.DiskLruCache
-
- assertionError(String, Exception) - Static method in class okhttp3.internal.Util
-
- assertRequests(String...) - Method in class okhttp3.FakeDns
-
- assertResponseCookies(String...) - Method in class okhttp3.RecordingCookieJar
-
- AsyncCall(Callback) - Constructor for class okhttp3.RealCall.AsyncCall
-
- authenticate(Route, Response) - Method in interface okhttp3.Authenticator
-
Returns a request that includes a credential to satisfy an authentication challenge in response
.
- authenticate(Route, Response) - Method in class okhttp3.JavaNetAuthenticator
-
- Authenticator - Interface in okhttp3
-
Responds to an authentication challenge from either a remote web server or a proxy server.
- authenticator - Variable in class okhttp3.OkHttpClient
-
- authenticator() - Method in class okhttp3.OkHttpClient
-
- authenticator - Variable in class okhttp3.OkHttpClient.Builder
-
- authenticator(Authenticator) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the authenticator used to respond to challenges from origin servers.
- awaitingPong - Variable in class okhttp3.internal.http2.Http2Connection
-
True if we have sent a ping that is still awaiting a reply.
- awaitingPong - Variable in class okhttp3.internal.ws.RealWebSocket
-
True if we have sent a ping that is still awaiting a reply.
- awaitPong() - Method in class okhttp3.internal.http2.Http2Connection
-
For testing: waits until requiredPongCount
pings have been received from the peer.
- awaitTermination(int, TimeUnit) - Method in class okhttp3.internal.ws.RealWebSocket
-
For testing: wait until the web socket's executor has terminated.
- 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(File, long, FileSystem) - Constructor for class okhttp3.Cache
-
- cache - Variable in class okhttp3.Cache
-
- cache - Variable in class okhttp3.internal.cache.CacheInterceptor
-
- cache - Variable in class okhttp3.OkHttpClient.Builder
-
- cache(Cache) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the response cache to be used to read and write cached responses.
- cache - Variable in class okhttp3.OkHttpClient
-
- cache() - Method in class okhttp3.OkHttpClient
-
- Cache.CacheRequestImpl - Class in okhttp3
-
- Cache.CacheResponseBody - Class in okhttp3
-
- Cache.Entry - Class in okhttp3
-
- CacheControl - Class in okhttp3
-
A Cache-Control header with cache directives from a server or client.
- CacheControl(boolean, boolean, int, int, boolean, boolean, boolean, int, int, boolean, boolean, boolean, String) - Constructor for class okhttp3.CacheControl
-
- CacheControl(CacheControl.Builder) - Constructor for class okhttp3.CacheControl
-
- cacheControl(CacheControl) - Method in class okhttp3.Request.Builder
-
Sets this request's Cache-Control
header, replacing any cache control headers already
present.
- cacheControl - Variable in class okhttp3.Request
-
- cacheControl() - Method in class okhttp3.Request
-
Returns the cache control directives for this response.
- cacheControl - Variable in class okhttp3.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
-
- cacheOut - Variable in class okhttp3.Cache.CacheRequestImpl
-
- CacheRequest - Interface in okhttp3.internal.cache
-
- CacheRequestImpl(DiskLruCache.Editor) - Constructor for class okhttp3.Cache.CacheRequestImpl
-
- 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 - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
-
- cacheResponse - Variable in class okhttp3.Response.Builder
-
- cacheResponse(Response) - Method in class okhttp3.Response.Builder
-
- cacheResponse - Variable in class okhttp3.Response
-
- cacheResponse() - Method in class okhttp3.Response
-
Returns the raw response received from the cache.
- cacheResponseAge() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns the current age of the response, in milliseconds.
- CacheResponseBody(DiskLruCache.Snapshot, String, String) - Constructor for class okhttp3.Cache.CacheResponseBody
-
- 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(Request, Response) - Constructor for class okhttp3.internal.cache.CacheStrategy
-
- CacheStrategy.Factory - Class in okhttp3.internal.cache
-
- cacheWritingResponse(CacheRequest, Response) - Method in class okhttp3.internal.cache.CacheInterceptor
-
Returns a new source that writes bytes to cacheRequest
as they are read by the source
consumer.
- 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.RouteSelector
-
- call - Variable in class okhttp3.internal.connection.StreamAllocation
-
- call - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- call() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- call - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- call - Variable in class okhttp3.internal.ws.RealWebSocket
-
Non-null for client web sockets.
- 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.
- callFailure - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- calls - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- 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
-
- CallServerInterceptor.CountingSink - Class in okhttp3.internal.http
-
- callStackTrace - Variable in class okhttp3.internal.connection.StreamAllocation
-
- callStackTrace - Variable in class okhttp3.internal.connection.StreamAllocation.StreamAllocationReference
-
Captures the stack trace at the time the Call is executed or enqueued.
- callStackTrace - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- 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 class okhttp3.RealCall
-
- cancel() - Method in interface okhttp3.WebSocket
-
Immediately and violently release resources held by this web socket, discarding any enqueued
messages.
- CANCEL_AFTER_CLOSE_MILLIS - Static variable in class okhttp3.internal.ws.RealWebSocket
-
- cancelAfterCloseMillis - Variable in class okhttp3.internal.ws.RealWebSocket.Close
-
- cancelAll() - Method in class okhttp3.Dispatcher
-
Cancel all calls currently enqueued or executing.
- canceled - Variable in class okhttp3.internal.connection.StreamAllocation
-
- canceled - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- cancelFuture - Variable in class okhttp3.internal.ws.RealWebSocket
-
When executed this will cancel this websocket.
- CancelRunnable() - Constructor for class okhttp3.internal.ws.RealWebSocket.CancelRunnable
-
- cancelStreamIfNecessary() - Method in class okhttp3.internal.http2.Http2Stream
-
- canonicalHostname - Variable in class okhttp3.CertificatePinner.Pin
-
The canonical hostname, i.e.
- canonicalize(String, int, int, String, boolean, boolean, boolean, boolean, Charset) - Static method in class okhttp3.HttpUrl
-
Returns a substring of input
on the range [pos..limit)
with the following
transformations:
Tabs, newlines, form feeds and carriage returns are skipped.
- canonicalize(Buffer, String, int, int, String, boolean, boolean, boolean, boolean, Charset) - Static method in class okhttp3.HttpUrl
-
- canonicalize(String, String, boolean, boolean, boolean, boolean, Charset) - Static method in class okhttp3.HttpUrl
-
- canonicalize(String, String, boolean, boolean, boolean, boolean) - Static method in class okhttp3.HttpUrl
-
- canonicalizeHost(String, int, int) - Static method in class okhttp3.HttpUrl.Builder
-
- canonicalizeHost(String) - Static method in class okhttp3.internal.Util
-
If host
is an IP address, this returns the IP address in canonical form.
- captureCallStackTrace() - Method in class okhttp3.RealCall
-
- certificateChainCleaner - Variable in class okhttp3.CertificatePinner
-
- 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
-
- certificateChainCleaner - Variable in class okhttp3.OkHttpClient.Builder
-
- certificateChainCleaner - Variable in class okhttp3.OkHttpClient
-
- certificatePinner - Variable in class okhttp3.Address
-
- 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(Set<CertificatePinner.Pin>, CertificateChainCleaner) - Constructor for class okhttp3.CertificatePinner
-
- certificatePinner - Variable in class okhttp3.OkHttpClient.Builder
-
- certificatePinner(CertificatePinner) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the certificate pinner that constrains which certificates are trusted.
- certificatePinner - Variable in class okhttp3.OkHttpClient
-
- certificatePinner() - Method in class okhttp3.OkHttpClient
-
- CertificatePinner.Builder - Class in okhttp3
-
Builds a configured certificate pinner.
- CertificatePinner.Pin - Class in okhttp3
-
- certificates - Variable in class okhttp3.FakeSSLSession
-
- chain - Variable in class okhttp3.internal.http2.Http2Codec
-
- Challenge - Class in okhttp3
-
An RFC 7617 challenge.
- Challenge(String, String) - Constructor for class okhttp3.Challenge
-
- Challenge(String, String, Charset) - Constructor for class okhttp3.Challenge
-
- challenges() - Method in class okhttp3.Response
-
Returns the authorization challenges appropriate for this response's code.
- chars - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
Distinguished name characters.
- charset - Variable in class okhttp3.Challenge
-
- charset() - Method in class okhttp3.Challenge
-
Returns the charset that should be used to encode the credential.
- charset - Variable in class okhttp3.FormBody.Builder
-
- charset - Variable in class okhttp3.MediaType
-
- 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.
- charset - Variable in class okhttp3.ResponseBody.BomAwareReader
-
- charset() - Method in class okhttp3.ResponseBody
-
- 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
-
- checkLowercase(ByteString) - Static method in class okhttp3.internal.http2.Hpack
-
An HTTP/2 response cannot contain uppercase header characters and must be treated as
malformed.
- checkNameAndValue(String, String) - Method in class okhttp3.Headers.Builder
-
- checkNotClosed() - Method in class okhttp3.internal.cache.DiskLruCache
-
- checkNotClosed() - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
-
- checkOffsetAndCount(long, long, long) - Static method in class okhttp3.internal.Util
-
- checkOutNotClosed() - Method in class okhttp3.internal.http2.Http2Stream
-
- checkPriorResponse(Response) - Method in class okhttp3.Response.Builder
-
- checkResponse(Response) - Method in class okhttp3.internal.ws.RealWebSocket
-
- checkSupportResponse(String, Response) - Method in class okhttp3.Response.Builder
-
- checkURLPermitted(URL) - Method in interface okhttp3.internal.URLFilter
-
Deprecated.
Check whether request to the provided URL is permitted to be issued.
- children - Variable in class okhttp3.internal.http2.Huffman.Node
-
- ChunkedSink() - Constructor for class okhttp3.internal.http1.Http1Codec.ChunkedSink
-
- ChunkedSource(HttpUrl) - Constructor for class okhttp3.internal.http1.Http1Codec.ChunkedSource
-
- CipherSuite - Class in okhttp3
-
- CipherSuite(String) - Constructor for class okhttp3.CipherSuite
-
- cipherSuite - Variable in class okhttp3.Handshake
-
- cipherSuite() - Method in class okhttp3.Handshake
-
Returns the cipher suite used for the connection.
- cipherSuites - Variable in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites(CipherSuite...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites(String...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites - Variable in class okhttp3.ConnectionSpec
-
- cipherSuites() - Method in class okhttp3.ConnectionSpec
-
Returns the cipher suites to use for a connection.
- CLEAN - Static variable in class okhttp3.internal.cache.DiskLruCache
-
- 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
-
- cleanFiles - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
-
- cleanup(long) - Method in class okhttp3.ConnectionPool
-
Performs maintenance on this pool, evicting the connection that has been idle the longest if
either it has exceeded the keep alive limit or the idle connections limit.
- cleanupRunnable - Variable in class okhttp3.ConnectionPool
-
- cleanupRunnable - Variable in class okhttp3.internal.cache.DiskLruCache
-
- cleanupRunning - Variable in class okhttp3.ConnectionPool
-
- clear(String) - Method in class okhttp3.FakeDns
-
Clears the results for hostname
.
- clear() - Method in class okhttp3.internal.http2.Settings
-
- clearDynamicTable() - Method in class okhttp3.internal.http2.Hpack.Reader
-
- clearDynamicTable() - Method in class okhttp3.internal.http2.Hpack.Writer
-
- CLEARTEXT - Static variable in class okhttp3.ConnectionSpec
-
Unencrypted, unauthenticated connections for http:
URLs.
- client - Variable in class okhttp3.apache.OkApacheClient
-
Deprecated.
- client - Variable in class okhttp3.internal.connection.ConnectInterceptor
-
- client - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- client - Variable in class okhttp3.internal.http1.Http1Codec
-
The client that configures this stream.
- client - Variable in class okhttp3.internal.http2.Http2Codec
-
- client - Variable in class okhttp3.internal.http2.Http2Connection.Builder
-
- client - Variable in class okhttp3.internal.http2.Http2Connection
-
True if this peer initiated the connection.
- client - Variable in class okhttp3.internal.http2.Http2Reader
-
- client - Variable in class okhttp3.internal.http2.Http2Writer
-
- client - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- client - Variable in class okhttp3.internal.ws.RealWebSocket.Streams
-
- client - Variable in class okhttp3.OkUrlFactory
-
Deprecated.
- client() - Method in class okhttp3.OkUrlFactory
-
Deprecated.
- client - Variable in class okhttp3.RealCall
-
- clientProviderClass - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform
-
- 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.
- clone() - Method in class okhttp3.RealCall
-
- 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.cache.FaultHidingSink
-
- close() - Method in class okhttp3.internal.cache2.Relay.RelaySource
-
- close() - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSink
-
- close() - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSource
-
- close() - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
-
- close() - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSource
-
- close() - Method in class okhttp3.internal.http1.Http1Codec.UnknownLengthSource
-
- close() - Method in class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
-
- close() - Method in class okhttp3.internal.http2.Http2Connection
-
Closes this connection.
- close(ErrorCode, ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection
-
- close() - Method in class okhttp3.internal.http2.Http2Reader
-
- close() - Method in class okhttp3.internal.http2.Http2Reader.ContinuationSource
-
- close(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Abnormally terminate this stream.
- close() - Method in class okhttp3.internal.http2.Http2Stream.FramingSink
-
- close() - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
-
- close() - Method in class okhttp3.internal.http2.Http2Writer
-
- close(int, String) - Method in class okhttp3.internal.ws.RealWebSocket
-
- close(int, String, long) - Method in class okhttp3.internal.ws.RealWebSocket
-
- Close(int, ByteString, long) - Constructor for class okhttp3.internal.ws.RealWebSocket.Close
-
- close() - Method in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- close() - Method in class okhttp3.Response
-
Closes the response body.
- close() - Method in class okhttp3.ResponseBody.BomAwareReader
-
- close() - Method in class okhttp3.ResponseBody
-
- close(int, String) - Method in interface okhttp3.WebSocket
-
Attempts to initiate a graceful shutdown of this web socket.
- CLOSE_CLIENT_GOING_AWAY - Static variable in class okhttp3.internal.ws.WebSocketProtocol
-
Used when an unchecked exception was thrown in a listener.
- CLOSE_MESSAGE_MAX - Static variable in class okhttp3.internal.ws.WebSocketProtocol
-
Maximum length of close message in bytes.
- CLOSE_NO_STATUS_CODE - Static variable in class okhttp3.internal.ws.WebSocketProtocol
-
Used when an empty close frame was received (i.e., without a status code).
- closeCodeExceptionMessage(int) - Static method in class okhttp3.internal.ws.WebSocketProtocol
-
- closed - Variable in class okhttp3.internal.cache.DiskLruCache
-
- closed - Variable in class okhttp3.internal.http1.Http1Codec.AbstractSource
-
- closed - Variable in class okhttp3.internal.http1.Http1Codec.ChunkedSink
-
- closed - Variable in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
-
- closed - Variable in class okhttp3.internal.http2.Http2Stream.FramingSink
-
- closed - Variable in class okhttp3.internal.http2.Http2Stream.FramingSource
-
True if the caller has closed this stream.
- closed - Variable in class okhttp3.internal.http2.Http2Writer
-
- closed - Variable in class okhttp3.internal.huc.OutputStreamRequestBody
-
- closed - Variable in class okhttp3.internal.ws.WebSocketReader
-
- closed - Variable in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- closed - Variable in class okhttp3.ResponseBody.BomAwareReader
-
- closeInternal(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Returns true if this stream was closed.
- 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.Cache.Entry
-
- code - Variable in class okhttp3.internal.http.StatusLine
-
- code(Response.Builder) - Method in class okhttp3.internal.Internal
-
- code - Variable in class okhttp3.internal.ws.RealWebSocket.Close
-
- code - Variable in class okhttp3.Response.Builder
-
- code(int) - Method in class okhttp3.Response.Builder
-
- code - Variable in class okhttp3.Response
-
- code() - Method in class okhttp3.Response
-
Returns the HTTP status code.
- CODE_LENGTHS - Static variable in class okhttp3.internal.http2.Huffman
-
- codec - Variable in class okhttp3.internal.connection.StreamAllocation
-
- codec() - Method in class okhttp3.internal.connection.StreamAllocation
-
- CODES - Static variable in class okhttp3.internal.http2.Huffman
-
- COLONSPACE - Static variable in class okhttp3.MultipartBody
-
- combine(Headers, Headers) - Static method in class okhttp3.internal.cache.CacheInterceptor
-
Combines cached headers with a network headers as defined by RFC 7234, 4.3.4.
- commit() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Commits this edit so it is visible to readers.
- commit(long) - Method in class okhttp3.internal.cache2.Relay
-
- COMPATIBLE_TLS - Static variable in class okhttp3.ConnectionSpec
-
A backwards-compatible fallback connection for interop with obsolete servers.
- complete - Variable in class okhttp3.internal.cache2.Relay
-
True if there are no further bytes to read from upstream
.
- completed - Variable in class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
-
- completeEdit(DiskLruCache.Editor, boolean) - Method in class okhttp3.internal.cache.DiskLruCache
-
- computeFreshnessLifetime() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns the number of milliseconds that the response was fresh for, starting from the served
date.
- concat(String[], String) - Static method in class okhttp3.internal.Util
-
- concatLengthPrefixed(List<Protocol>) - Static method in class okhttp3.internal.platform.Platform
-
Returns the concatenation of 8-bit, length prefixed protocol names.
- configureSecureSocket(SSLSocket) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
Configures the supplied
SSLSocket
to connect to the specified host using an appropriate
ConnectionSpec
.
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.Jdk9Platform
-
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.JdkWithJettyBootPlatform
-
- 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.DelegatingHttpsURLConnection
-
- 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 - Variable in class okhttp3.internal.connection.StreamAllocation
-
- connection() - Method in class okhttp3.internal.connection.StreamAllocation
-
- connection - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- connection() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- CONNECTION - Static variable in class okhttp3.internal.http2.Http2Codec
-
- connection - Variable in class okhttp3.internal.http2.Http2Codec
-
- connection - Variable in class okhttp3.internal.http2.Http2Stream
-
- CONNECTION_PREFACE - Static variable in class okhttp3.internal.http2.Http2
-
- connectionAcquired(Call, Connection) - Method in class okhttp3.EventListener
-
Invoked after a connection has been acquired for the call
.
- connectionBecameIdle(RealConnection) - Method in class okhttp3.ConnectionPool
-
Notify this pool that connection
has become idle.
- 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 - Variable in class okhttp3.internal.connection.RealConnection
-
- connectionPool - Variable in class okhttp3.internal.connection.StreamAllocation
-
- connectionPool - Variable in class okhttp3.OkHttpClient.Builder
-
- connectionPool(ConnectionPool) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the connection pool used to recycle HTTP and HTTPS connections.
- connectionPool - Variable in class okhttp3.OkHttpClient
-
- connectionPool() - Method in class okhttp3.OkHttpClient
-
- connectionPreface() - Method in class okhttp3.internal.http2.Http2Writer
-
- connectionReleased(Call, Connection) - Method in class okhttp3.EventListener
-
Invoked after a connection has been released for the call
.
- connections - Variable in class okhttp3.ConnectionPool
-
- 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(ConnectionSpec.Builder) - Constructor for class okhttp3.ConnectionSpec
-
- ConnectionSpec.Builder - Class in okhttp3
-
- connectionSpecs - Variable in class okhttp3.Address
-
- connectionSpecs() - Method in class okhttp3.Address
-
- connectionSpecs - Variable in class okhttp3.internal.connection.ConnectionSpecSelector
-
- connectionSpecs - Variable in class okhttp3.OkHttpClient.Builder
-
- connectionSpecs(List<ConnectionSpec>) - Method in class okhttp3.OkHttpClient.Builder
-
- connectionSpecs - Variable in class okhttp3.OkHttpClient
-
- 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
-
- connectPending - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- connectSocket(int, int, Call, EventListener) - Method in class okhttp3.internal.connection.RealConnection
-
Does all the work necessary to build a full HTTP or HTTPS connection on a raw socket.
- 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.internal.http.RealInterceptorChain
-
- connectTimeout - Variable in class okhttp3.OkHttpClient.Builder
-
- connectTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the default connect timeout for new connections.
- connectTimeout - Variable in class okhttp3.OkHttpClient
-
- 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).
- connectTls(ConnectionSpecSelector) - Method in class okhttp3.internal.connection.RealConnection
-
- connectTunnel(int, int, int, Call, EventListener) - Method in class okhttp3.internal.connection.RealConnection
-
Does all the work to build an HTTPS connection over a proxy tunnel.
- consumeContentQuietly(HttpResponse) - Static method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- containsInvalidHostnameAsciiCodes(String) - Static method in class okhttp3.internal.Util
-
- CONTENT_TYPE - Static variable in class okhttp3.FormBody
-
- contentLength() - Method in class okhttp3.apache.HttpEntityBody
-
- contentLength - Variable in class okhttp3.Cache.CacheResponseBody
-
- contentLength() - Method in class okhttp3.Cache.CacheResponseBody
-
- 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 - Variable in class okhttp3.internal.http.RealResponseBody
-
- contentLength() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentLength - Variable in class okhttp3.internal.huc.BufferedRequestBody
-
- contentLength() - Method in class okhttp3.internal.huc.BufferedRequestBody
-
- contentLength() - Method in class okhttp3.internal.huc.OutputStreamRequestBody
-
- contentLength - Variable in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- contentLength - Variable in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.RequestBody
-
- contentLength() - Method in class okhttp3.ResponseBody
-
- contentType() - Method in class okhttp3.apache.HttpEntityBody
-
- contentType - Variable in class okhttp3.Cache.CacheResponseBody
-
- contentType() - Method in class okhttp3.Cache.CacheResponseBody
-
- contentType() - Method in class okhttp3.FormBody
-
- contentType() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentType() - Method in class okhttp3.internal.huc.OutputStreamRequestBody
-
- contentType - Variable in class okhttp3.MultipartBody
-
- 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
-
- contentTypeString - Variable in class okhttp3.internal.http.RealResponseBody
-
Use a string to avoid parsing the content type until needed.
- continuation - Variable in class okhttp3.internal.http2.Http2Reader
-
- ContinuationSource(BufferedSource) - Constructor for class okhttp3.internal.http2.Http2Reader.ContinuationSource
-
- controlFrameBuffer - Variable in class okhttp3.internal.ws.WebSocketReader
-
- Cookie - Class in okhttp3
-
- Cookie(String, String, long, String, String, boolean, boolean, boolean, boolean) - Constructor for class okhttp3.Cookie
-
- Cookie(Cookie.Builder) - Constructor for class okhttp3.Cookie
-
- Cookie.Builder - Class in okhttp3
-
Builds a cookie.
- cookieHandler - Variable in class okhttp3.JavaNetCookieJar
-
- cookieHeader(List<Cookie>) - Method in class okhttp3.internal.http.BridgeInterceptor
-
Returns a 'Cookie' HTTP request header with all cookies, like a=b; c=d
.
- CookieJar - Interface in okhttp3
-
Provides policy and persistence for HTTP cookies.
- cookieJar - Variable in class okhttp3.internal.http.BridgeInterceptor
-
- cookieJar - Variable in class okhttp3.OkHttpClient.Builder
-
- 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 - Variable in class okhttp3.OkHttpClient
-
- cookieJar() - Method in class okhttp3.OkHttpClient
-
- COUNT - Static variable in class okhttp3.internal.http2.Settings
-
Total number of settings.
- CountingSink(Sink) - Constructor for class okhttp3.internal.http.CallServerInterceptor.CountingSink
-
- 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
.
- createAddress(HttpUrl) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- 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
-
- createTunnel(int, int, Request, HttpUrl) - Method in class okhttp3.internal.connection.RealConnection
-
To make an HTTPS connection over an HTTP proxy, send an unencrypted CONNECT request to create
the proxy connection.
- createTunnelRequest() - Method in class okhttp3.internal.connection.RealConnection
-
Returns a request that creates a TLS tunnel via an HTTP proxy.
- createURLStreamHandler(String) - Method in class okhttp3.OkUrlFactory
-
Deprecated.
Creates a URLStreamHandler as a URL.setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory)
.
- Credentials - Class in okhttp3
-
Factory for HTTP authorization credentials.
- Credentials() - Constructor for class okhttp3.Credentials
-
- CRLF - Static variable in class okhttp3.MultipartBody
-
- cur - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
Temporary variable to store positions of the currently parsed item.
- currentEditor - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
-
The ongoing edit or null if this entry is not being edited.
- currentPushRequests - Variable in class okhttp3.internal.http2.Http2Connection
-
- DASHDASH - Static variable in class okhttp3.MultipartBody
-
- data(boolean, int, BufferedSource, int) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- data(boolean, int, BufferedSource, int) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
- data(boolean, int, Buffer, int) - Method in class okhttp3.internal.http2.Http2Writer
-
source.length
may be longer than the max length of the variant's data frame.
- data - Variable in class okhttp3.internal.ws.RealWebSocket.Message
-
- dataFrame(int, byte, Buffer, int) - Method in class okhttp3.internal.http2.Http2Writer
-
- dateCharacterOffset(String, int, int, boolean) - Static method in class okhttp3.Cookie
-
Returns the index of the next date character in input
, or if invert
the index
of the next non-date character in input
.
- DAY_OF_MONTH_PATTERN - Static variable in class okhttp3.Cookie
-
- deallocate(boolean, boolean, boolean) - Method in class okhttp3.internal.connection.StreamAllocation
-
Releases resources held by this allocation.
- decode(byte[]) - Method in class okhttp3.internal.http2.Huffman
-
- decodeHeaderAsJavaNetCookies(HttpUrl, String) - Method in class okhttp3.JavaNetCookieJar
-
Convert a request header to OkHttp's cookies via HttpCookie
.
- decodeHexDigit(char) - Static method in class okhttp3.internal.Util
-
- decodeIpv4Suffix(String, int, int, byte[], int) - Static method in class okhttp3.internal.Util
-
Decodes an IPv4 address suffix of an IPv6 address, like 1111::5555:6666:192.168.0.1.
- decodeIpv6(String, int, int) - Static method in class okhttp3.internal.Util
-
Decodes an IPv6 address like 1111:2222:3333:4444:5555:6666:7777:8888 or ::1.
- deduplicate(Address, StreamAllocation) - Method in class okhttp3.ConnectionPool
-
Replaces the connection held by streamAllocation
with a shared connection if possible.
- 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
-
- DEFAULT_CONNECTION_SPECS - Static variable in class okhttp3.OkHttpClient
-
- DEFAULT_INITIAL_WINDOW_SIZE - Static variable in class okhttp3.internal.http2.Settings
-
From the HTTP/2 specs, the default initial window size for all streams is 64 KiB.
- DEFAULT_MEDIA_TYPE - Static variable in class okhttp3.apache.HttpEntityBody
-
- DEFAULT_PROTOCOLS - Static variable in class okhttp3.OkHttpClient
-
- defaultPort(String) - Static method in class okhttp3.HttpUrl
-
Returns 80 if scheme.equals("http")
, 443 if scheme.equals("https")
and -1
otherwise.
- defaultUserAgent() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- delegate - Variable in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- delegate - Variable in class okhttp3.internal.huc.OkHttpsURLConnection
-
- delegate - Variable in class okhttp3.ResponseBody.BomAwareReader
-
- DelegatingHttpsURLConnection - Class in okhttp3.internal.huc
-
Implement an HTTPS connection by delegating to an HTTP connection for everything but the
HTTPS-specific stuff.
- DelegatingHttpsURLConnection(HttpURLConnection) - Constructor for class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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
.
- detach() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Prevents this editor from completing normally.
- detachTimeout(ForwardingTimeout) - Method in class okhttp3.internal.http1.Http1Codec
-
Sets the delegate of timeout
to Timeout.NONE
and resets its underlying timeout
to the default configuration.
- 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
-
- directory - Variable in class okhttp3.internal.cache.DiskLruCache
-
- DIRTY - Static variable in class okhttp3.internal.cache.DiskLruCache
-
- dirtyFiles - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
-
- 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.DelegatingHttpsURLConnection
-
- 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(FileSystem, File, int, int, long, Executor) - Constructor for class okhttp3.internal.cache.DiskLruCache
-
- DiskLruCache.Editor - Class in okhttp3.internal.cache
-
Edits the values for an entry.
- DiskLruCache.Entry - Class in okhttp3.internal.cache
-
- 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 - Variable in class okhttp3.OkHttpClient.Builder
-
- dispatcher(Dispatcher) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the dispatcher used to set policy and execute asynchronous requests.
- dispatcher - Variable in class okhttp3.OkHttpClient
-
- dispatcher() - Method in class okhttp3.OkHttpClient
-
- DistinguishedNameParser - Class in okhttp3.internal.tls
-
A distinguished name (DN) parser.
- DistinguishedNameParser(X500Principal) - Constructor for class okhttp3.internal.tls.DistinguishedNameParser
-
- dn - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
- dns - Variable in class okhttp3.Address
-
- 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 - Variable in class okhttp3.OkHttpClient.Builder
-
- dns(Dns) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the DNS service used to lookup IP addresses for hostnames.
- dns - Variable in class okhttp3.OkHttpClient
-
- 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 - Variable in class okhttp3.Cookie.Builder
-
- domain(String) - Method in class okhttp3.Cookie.Builder
-
Set the domain pattern for this cookie.
- domain(String, boolean) - Method in class okhttp3.Cookie.Builder
-
- domain - Variable in class okhttp3.Cookie
-
- domain() - Method in class okhttp3.Cookie
-
Returns the cookie's domain.
- domainMatch(String, String) - Static method in class okhttp3.Cookie
-
- done - Variable in class okhttp3.Cache.CacheRequestImpl
-
- done - Variable in class okhttp3.internal.cache.DiskLruCache.Editor
-
- dynamicTable - Variable in class okhttp3.internal.http2.Hpack.Reader
-
- dynamicTable - Variable in class okhttp3.internal.http2.Hpack.Writer
-
- dynamicTableByteCount - Variable in class okhttp3.internal.http2.Hpack.Reader
-
- dynamicTableByteCount - Variable in class okhttp3.internal.http2.Hpack.Writer
-
- dynamicTableIndex(int) - Method in class okhttp3.internal.http2.Hpack.Reader
-
- 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(String, long) - Method in class okhttp3.internal.cache.DiskLruCache
-
- 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.
- edit(File, Source, ByteString, long) - Static method in class okhttp3.internal.cache2.Relay
-
Creates a new relay that reads a live stream from upstream
, using file
to share
that data with other sources.
- editor - Variable in class okhttp3.Cache.CacheRequestImpl
-
- Editor(DiskLruCache.Entry) - Constructor for class okhttp3.internal.cache.DiskLruCache.Editor
-
- effectivePort() - Method in class okhttp3.HttpUrl.Builder
-
- EMIT_BUFFER_SIZE - Static variable in class okhttp3.internal.http2.Http2Stream.FramingSink
-
- emitDynamicTableSizeUpdate - Variable in class okhttp3.internal.http2.Hpack.Writer
-
- emitFrame(boolean) - Method in class okhttp3.internal.http2.Http2Stream.FramingSink
-
Emit a single data frame to the connection.
- 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_RULE - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
- EMPTY_STRING_ARRAY - Static variable in class okhttp3.internal.Util
-
- ENABLE_PUSH - Static variable in class okhttp3.internal.http2.Settings
-
HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0.
- encode(ByteString, BufferedSink) - Method in class okhttp3.internal.http2.Huffman
-
- encodedFragment - Variable in class okhttp3.HttpUrl.Builder
-
- 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
.
- encodedLength(ByteString) - Method in class okhttp3.internal.http2.Huffman
-
- encodedName(int) - Method in class okhttp3.FormBody
-
- encodedNames - Variable in class okhttp3.FormBody
-
- encodedPassword - Variable in class okhttp3.HttpUrl.Builder
-
- 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 - Variable in class okhttp3.HttpUrl.Builder
-
- 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.
- encodedQueryNamesAndValues - Variable in class okhttp3.HttpUrl.Builder
-
- encodedUsername - Variable in class okhttp3.HttpUrl.Builder
-
- 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
-
- encodedValues - Variable in class okhttp3.FormBody
-
- ENCODING - Static variable in class okhttp3.internal.http2.Http2Codec
-
- end - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
- endOfInput(boolean, IOException) - Method in class okhttp3.internal.http1.Http1Codec.AbstractSource
-
Closes the cache entry and makes the socket available for reuse.
- endOfInput(IOException) - Method in class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
-
- enqueue(Callback) - Method in interface okhttp3.Call
-
Schedules the request to be executed at some point in the future.
- enqueue(RealCall.AsyncCall) - Method in class okhttp3.Dispatcher
-
- enqueue(Callback) - Method in class okhttp3.RealCall
-
- enqueuedClose - Variable in class okhttp3.internal.ws.RealWebSocket
-
True if we've enqueued a close frame.
- enqueueRequestCookies(Cookie...) - Method in class okhttp3.RecordingCookieJar
-
- ensureResourcesClosed() - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- entity - Variable in class okhttp3.apache.HttpEntityBody
-
- Entry(Source) - Constructor for class okhttp3.Cache.Entry
-
Reads an entry from an input stream.
- Entry(Response) - Constructor for class okhttp3.Cache.Entry
-
- entry - Variable in class okhttp3.internal.cache.DiskLruCache.Editor
-
- Entry(String) - Constructor for class okhttp3.internal.cache.DiskLruCache.Entry
-
- ENTRY_BODY - Static variable in class okhttp3.Cache
-
- ENTRY_COUNT - Static variable in class okhttp3.Cache
-
- ENTRY_METADATA - Static variable in class okhttp3.Cache
-
- 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.CertificatePinner.Pin
-
- 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) - Method in class okhttp3.Address
-
- equalsNonHost(Address, Address) - Method in class okhttp3.internal.Internal
-
- ErrorCode - Enum in okhttp3.internal.http2
-
- ErrorCode(int) - Constructor for enum okhttp3.internal.http2.ErrorCode
-
- errorCode - Variable in class okhttp3.internal.http2.Http2Stream
-
The reason why this stream was abnormally closed.
- errorCode - Variable in exception okhttp3.internal.http2.StreamResetException
-
- escapedAV() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- establishProtocol(ConnectionSpecSelector, int, Call, EventListener) - Method in class okhttp3.internal.connection.RealConnection
-
- etag - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
-
Etag of the cached response.
- EventListener - Class in okhttp3
-
Listener for metrics events.
- EventListener() - Constructor for class okhttp3.EventListener
-
- eventListener - Variable in class okhttp3.internal.connection.RouteSelector
-
- eventListener - Variable in class okhttp3.internal.connection.StreamAllocation
-
- eventListener - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- 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 - Variable in class okhttp3.RealCall
-
- EventListener.Factory - Interface in okhttp3
-
Warning: This is a non-final API.
- eventListenerFactory - Variable in class okhttp3.OkHttpClient.Builder
-
- 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 - Variable in class okhttp3.OkHttpClient
-
- 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.
- evictToRecoverBytes(int) - Method in class okhttp3.internal.http2.Hpack.Reader
-
Returns the count of entries evicted.
- evictToRecoverBytes(int) - Method in class okhttp3.internal.http2.Hpack.Writer
-
Returns the count of entries evicted.
- EXCEPTION_MARKER - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
- 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.http2.Http2Connection.PingRunnable
-
- execute() - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- execute() - Method in class okhttp3.internal.NamedRunnable
-
- execute() - Method in class okhttp3.RealCall.AsyncCall
-
- execute() - Method in class okhttp3.RealCall
-
- executed(RealCall) - Method in class okhttp3.Dispatcher
-
Used by Call#execute
to signal it is in-flight.
- executed - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- executed - Variable in class okhttp3.RealCall
-
- executor - Static variable in class okhttp3.ConnectionPool
-
Background threads are used to cleanup expired connections.
- executor - Variable in class okhttp3.internal.cache.DiskLruCache
-
Used to run 'cleanupRunnable' for journal rebuilds.
- executor - Variable in class okhttp3.internal.ws.RealWebSocket
-
Null until this web socket is connected.
- executorService - Variable in class okhttp3.Dispatcher
-
Executes calls.
- 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
-
- exitAndThrowIfTimedOut() - Method in class okhttp3.internal.http2.Http2Stream.StreamTimeout
-
- expectedContentLength - Variable in class okhttp3.internal.huc.OutputStreamRequestBody
-
- expires - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
-
The expiration date of the cached response, if known.
- expiresAt - Variable in class okhttp3.Cookie.Builder
-
- expiresAt(long) - Method in class okhttp3.Cookie.Builder
-
- expiresAt - Variable in class okhttp3.Cookie
-
- expiresAt() - Method in class okhttp3.Cookie
-
Returns the time that this cookie expires, in the same format as System.currentTimeMillis()
.
- factory(EventListener) - Static method in class okhttp3.EventListener
-
- Factory(long, Request, Response) - Constructor for class okhttp3.internal.cache.CacheStrategy.Factory
-
- failConnection() - Method in class okhttp3.internal.http2.Http2Connection
-
- failed(Route) - Method in class okhttp3.internal.connection.RouteDatabase
-
Records a failure connecting to failedRoute
.
- failed - Variable in class okhttp3.internal.ws.RealWebSocket
-
True if this web socket failed and the listener has been notified.
- failedRoutes - Variable in class okhttp3.internal.connection.RouteDatabase
-
- failWebSocket(Exception, Response) - Method in class okhttp3.internal.ws.RealWebSocket
-
- FakeDns - Class in okhttp3
-
- FakeDns() - Constructor for class okhttp3.FakeDns
-
- FakeProxySelector - Class in okhttp3
-
- FakeProxySelector() - Constructor for class okhttp3.FakeProxySelector
-
- FakeSSLSession - Class in okhttp3
-
- FakeSSLSession(Certificate...) - Constructor for class okhttp3.FakeSSLSession
-
- FaultHidingSink - Class in okhttp3.internal.cache
-
A sink that never throws IOExceptions, even if the underlying sink does.
- FaultHidingSink(Sink) - Constructor for class okhttp3.internal.cache.FaultHidingSink
-
- FIELD_NAME_COMPARATOR - Static variable in class okhttp3.internal.JavaNetHeaders
-
- file - Variable in class okhttp3.internal.cache2.Relay
-
Read/write persistence of the upstream source and its metadata.
- FILE_HEADER_SIZE - Static variable in class okhttp3.internal.cache2.Relay
-
- fileChannel - Variable in class okhttp3.internal.cache2.FileOperator
-
- FileOperator - Class in okhttp3.internal.cache2
-
Read and write a target file.
- FileOperator(FileChannel) - Constructor for class okhttp3.internal.cache2.FileOperator
-
- fileOperator - Variable in class okhttp3.internal.cache2.Relay.RelaySource
-
The operator to read and write the shared file.
- files - Variable in class okhttp3.internal.io.InMemoryFileSystem
-
- fileSystem - Variable in class okhttp3.internal.cache.DiskLruCache
-
- FileSystem - Interface in okhttp3.internal.io
-
Access to read and write files on a hierarchical data store.
- findByIssuerAndSignature(X509Certificate) - Method in class okhttp3.internal.tls.BasicTrustRootIndex
-
- findByIssuerAndSignature(X509Certificate) - Method in interface okhttp3.internal.tls.TrustRootIndex
-
Returns the trusted CA certificate that signed cert
.
- findConnection(int, int, int, int, boolean) - Method in class okhttp3.internal.connection.StreamAllocation
-
Returns a connection to host a new stream.
- findHealthyConnection(int, int, int, int, boolean, boolean) - Method in class okhttp3.internal.connection.StreamAllocation
-
Finds a connection and returns it if it is healthy.
- findMatchingPins(String) - Method in class okhttp3.CertificatePinner
-
Returns list of matching certificates' pins for the hostname.
- findMatchingRule(String[]) - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
- findMostSpecific(String) - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
Parses the DN and returns the most significant attribute value for an attribute type, or null
if none found.
- findPlatform() - Static method in class okhttp3.internal.platform.Platform
-
Attempt to match the host runtime to a capable Platform implementation.
- finished(RealCall.AsyncCall) - Method in class okhttp3.Dispatcher
-
Used by AsyncCall#run
to signal completion.
- finished(RealCall) - Method in class okhttp3.Dispatcher
-
Used by Call#execute
to signal completion.
- finished(Deque<T>, T, boolean) - Method in class okhttp3.Dispatcher
-
- finished - Variable in class okhttp3.internal.http2.Http2Stream.FramingSink
-
True if either side has cleanly shut down this stream.
- finished - Variable in class okhttp3.internal.http2.Http2Stream.FramingSource
-
True if either side has cleanly shut down this stream.
- finishRequest() - Method in interface okhttp3.internal.http.HttpCodec
-
Flush the request to the underlying socket and signal no more bytes will be transmitted.
- finishRequest() - Method in class okhttp3.internal.http1.Http1Codec
-
- finishRequest() - Method in class okhttp3.internal.http2.Http2Codec
-
- fixedContentLength - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
Like the superclass field of the same name, but a long and available on all platforms.
- FixedLengthSink(long) - Constructor for class okhttp3.internal.http1.Http1Codec.FixedLengthSink
-
- FixedLengthSource(long) - Constructor for class okhttp3.internal.http1.Http1Codec.FixedLengthSource
-
- FLAG_ACK - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_COMPRESSED - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_END_HEADERS - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_END_PUSH_PROMISE - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_END_STREAM - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_NONE - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_PADDED - Static variable in class okhttp3.internal.http2.Http2
-
- FLAG_PRIORITY - Static variable in class okhttp3.internal.http2.Http2
-
- FLAGS - Static variable in class okhttp3.internal.http2.Http2
-
Lookup table for valid flags for DATA, HEADERS, CONTINUATION.
- flags - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
-
- flush() - Method in class okhttp3.Cache
-
- flush() - Method in class okhttp3.internal.cache.DiskLruCache
-
Force buffered operations to the filesystem.
- flush() - Method in class okhttp3.internal.cache.FaultHidingSink
-
- flush() - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSink
-
- flush() - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
-
- flush() - Method in class okhttp3.internal.http2.Http2Connection
-
- flush() - Method in class okhttp3.internal.http2.Http2Stream.FramingSink
-
- flush() - Method in class okhttp3.internal.http2.Http2Writer
-
- flush() - Method in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- flushRequest() - Method in interface okhttp3.internal.http.HttpCodec
-
Flush the request to the underlying socket.
- flushRequest() - Method in class okhttp3.internal.http1.Http1Codec
-
- flushRequest() - Method in class okhttp3.internal.http2.Http2Codec
-
- followRedirects - Variable in class okhttp3.OkHttpClient.Builder
-
- followRedirects(boolean) - Method in class okhttp3.OkHttpClient.Builder
-
Configure this client to follow redirects.
- followRedirects - Variable in class okhttp3.OkHttpClient
-
- followRedirects() - Method in class okhttp3.OkHttpClient
-
- followSslRedirects - Variable in class okhttp3.OkHttpClient.Builder
-
- followSslRedirects(boolean) - Method in class okhttp3.OkHttpClient.Builder
-
Configure this client to follow redirects from HTTPS to HTTP and from HTTP to HTTPS.
- followSslRedirects - Variable in class okhttp3.OkHttpClient
-
- followSslRedirects() - Method in class okhttp3.OkHttpClient
-
- followUpRequest(Response, Route) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
Figures out the HTTP request to make in response to receiving userResponse
.
- FORCE_CACHE - Static variable in class okhttp3.CacheControl
-
Cache control request directives that uses the cache only, even if the cached response is
stale.
- FORCE_NETWORK - Static variable in class okhttp3.CacheControl
-
Cache control request directives that require network validation of responses.
- forJavaName(String) - Static method in class okhttp3.CipherSuite
-
- forJavaName(String) - Static method in enum okhttp3.TlsVersion
-
- forJavaNames(String...) - Static method in class okhttp3.CipherSuite
-
- forJavaNames(String...) - Static method in enum okhttp3.TlsVersion
-
- FORM - Static variable in class okhttp3.MultipartBody
-
The media-type multipart/form-data follows the rules of all multipart MIME data streams as
outlined in RFC 2046.
- FORM_ENCODE_SET - Static variable in class okhttp3.HttpUrl
-
- format(Date) - Static method in class okhttp3.internal.http.HttpDate
-
Returns the string for value
.
- format(String, Object...) - Static method in class okhttp3.internal.Util
-
Returns a Locale.US
formatted String
.
- formatFlags(byte, byte) - Static method in class okhttp3.internal.http2.Http2
-
Looks up valid string representing flags from the table.
- formatOpcode - Variable in class okhttp3.internal.ws.RealWebSocket.Message
-
- formatOpcode - Variable in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- FormBody - Class in okhttp3
-
- FormBody(List<String>, List<String>) - Constructor for class okhttp3.FormBody
-
- FormBody.Builder - Class in okhttp3
-
- forWebSocket - Variable in class okhttp3.internal.http.CallServerInterceptor
-
- forWebSocket - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- forWebSocket - Variable in class okhttp3.RealCall
-
- fragment(String) - Method in class okhttp3.HttpUrl.Builder
-
- fragment - Variable in class okhttp3.HttpUrl
-
Decoded fragment.
- fragment() - Method in class okhttp3.HttpUrl
-
Returns this URL's fragment, like "abc"
for http://host/#abc
.
- FRAGMENT_ENCODE_SET - Static variable in class okhttp3.HttpUrl
-
- FRAGMENT_ENCODE_SET_URI - Static variable in class okhttp3.HttpUrl
-
- FRAME_NAMES - Static variable in class okhttp3.internal.http2.Http2
-
Lookup table for valid frame types.
- frameCallback - Variable in class okhttp3.internal.ws.WebSocketReader
-
- frameHeader(int, int, byte, byte) - Method in class okhttp3.internal.http2.Http2Writer
-
- frameLength - Variable in class okhttp3.internal.ws.WebSocketReader
-
- frameLog(boolean, int, int, byte, byte) - Static method in class okhttp3.internal.http2.Http2
-
Returns human-readable representation of HTTP/2 frame headers.
- frameSink - Variable in class okhttp3.internal.ws.WebSocketWriter
-
- FrameSink() - Constructor for class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- FramingSink() - Constructor for class okhttp3.internal.http2.Http2Stream.FramingSink
-
- FramingSource(long) - Constructor for class okhttp3.internal.http2.Http2Stream.FramingSource
-
- fromHttp2(int) - Static method in enum okhttp3.internal.http2.ErrorCode
-
- get(Request) - Method in class okhttp3.Cache
-
- get(Address, StreamAllocation, Route) - Method in class okhttp3.ConnectionPool
-
Returns a recycled connection to address
, or null if no such connection exists.
- 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(String[], String) - Static method in class okhttp3.Headers
-
- 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() - Static method in class okhttp3.internal.http2.Huffman
-
- get(int) - Method in class okhttp3.internal.http2.Settings
-
Returns the value for the setting id
, or 0 if unset.
- 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.RealCall.AsyncCall
-
- get() - Method in class okhttp3.Request.Builder
-
- getAll() - Method in class okhttp3.internal.connection.RouteSelector.Selection
-
- getAllowUserInteraction() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getAndResetHeaderList() - Method in class okhttp3.internal.http2.Hpack.Reader
-
- getApplicationBufferSize() - Method in class okhttp3.FakeSSLSession
-
- getByte(int) - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- getCandidate() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns a strategy to use assuming the request can use the network.
- getChecked(String) - Static method in class okhttp3.HttpUrl
-
Returns a new HttpUrl
representing url
if it is a well-formed HTTP or HTTPS
URL, or throws an exception if it isn't.
- getCipherSuite() - Method in class okhttp3.FakeSSLSession
-
- getCipherSuite() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getConnection() - Method in class okhttp3.internal.http2.Http2Stream
-
- getConnectionManager() - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- getConnectTimeout() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getConnectTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getConnectToInetAddress(Proxy, HttpUrl) - Method in class okhttp3.JavaNetAuthenticator
-
- getContent() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getContent(Class[]) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getContentEncoding() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getContentLength() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getContentLengthLong() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getContentType() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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.
- getDate() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getDefaultUseCaches() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getDirectory() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the directory where this cache stores its data.
- getDoInput() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getDoOutput() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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.
- getEnablePush(boolean) - Method in class okhttp3.internal.http2.Settings
-
- 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.DelegatingHttpsURLConnection
-
- 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.
- getEscaped() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- getExpiration() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderField(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderField(String) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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.
- getHeaderFieldDate(String, long) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderFieldInt(String, int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderFieldKey(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderFieldKey(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaderFieldLong(String, long) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderFields() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHeaderFields() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaders() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaderTableSize() - Method in class okhttp3.internal.http2.Settings
-
Returns -1 if unset.
- getHostnameVerifier() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getHostnameVerifier() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- getHostString(InetSocketAddress) - Static method in class okhttp3.internal.connection.RouteSelector
-
Obtain a "host" from an InetSocketAddress
.
- getHttpUrlChecked(String) - Method in class okhttp3.internal.Internal
-
- getId() - Method in class okhttp3.FakeSSLSession
-
- getId() - Method in class okhttp3.internal.http2.Http2Stream
-
- getIfModifiedSince() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getInitialWindowSize() - Method in class okhttp3.internal.http2.Settings
-
- getInputStream() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getInputStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getInstanceFollowRedirects() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getInstanceFollowRedirects() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getLastAccessedTime() - Method in class okhttp3.FakeSSLSession
-
- getLastConnectException() - Method in exception okhttp3.internal.connection.RouteException
-
- getLastModified() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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
-
- getLocalCertificates() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getLocalPrincipal() - Method in class okhttp3.FakeSSLSession
-
- getLocalPrincipal() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getMaxConcurrentStreams(int) - Method in class okhttp3.internal.http2.Settings
-
- getMaxFrameSize(int) - Method in class okhttp3.internal.http2.Settings
-
- getMaxHeaderListSize(int) - Method in class okhttp3.internal.http2.Settings
-
- 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.
- getMethod - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform
-
- getMethod(Class<?>) - Method in class okhttp3.internal.platform.OptionalMethod
-
Perform a lookup for the method.
- getName(int) - Method in class okhttp3.internal.http2.Hpack.Reader
-
- getOutputStream() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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
-
- getPeerPrincipal() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getPermission() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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.
- getProtocolMethod - Variable in class okhttp3.internal.platform.Jdk9Platform
-
- getPublicMethod(Class<?>, String, Class[]) - Static method in class okhttp3.internal.platform.OptionalMethod
-
- getReadTimeout() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getReadTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestHeaders() - Method in class okhttp3.internal.http2.Http2Stream
-
- getRequestMethod() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getRequestProperties() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getRequestProperties() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestProperty(String) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getRequestProperty(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponse(boolean) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Aggressively tries to get the final HTTP response, potentially making many HTTP requests in the
process in order to cope with redirects and authentication.
- getResponseCode() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getResponseCode() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponseMessage() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getResponseMessage() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponseWithInterceptorChain() - Method in class okhttp3.RealCall
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Jdk9Platform
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.JdkWithJettyBootPlatform
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
Returns the negotiated protocol, or null if no protocol was negotiated.
- getServerCertificates() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- 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.DelegatingHttpsURLConnection
-
- 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.
- getStream(int) - Method in class okhttp3.internal.http2.Http2Connection
-
- getSubjectAltNames(X509Certificate, int) - Static method in class okhttp3.internal.tls.OkHostnameVerifier
-
- getURL() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getUseCaches() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- getUTF8() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- getValue(String) - Method in class okhttp3.FakeSSLSession
-
- getValueNames() - Method in class okhttp3.FakeSSLSession
-
- goAway(int, ErrorCode, ByteString) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- goAway(int, ErrorCode, ByteString) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
The peer tells us to stop creating streams.
- goAway(int, ErrorCode, byte[]) - Method in class okhttp3.internal.http2.Http2Writer
-
Tell the peer to stop creating streams and that we last processed lastGoodStreamId
, or
zero if no streams were processed.
- handshake - Variable in class okhttp3.Cache.Entry
-
- 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(TlsVersion, CipherSuite, List<Certificate>, List<Certificate>) - Constructor for class okhttp3.Handshake
-
- handshake - Variable in class okhttp3.internal.connection.RealConnection
-
- handshake() - Method in class okhttp3.internal.connection.RealConnection
-
- handshake() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
-
- handshake() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- handshake - Variable in class okhttp3.internal.huc.OkHttpURLConnection
-
- handshake - Variable in class okhttp3.Response.Builder
-
- handshake(Handshake) - Method in class okhttp3.Response.Builder
-
- handshake - Variable in class okhttp3.Response
-
- 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.
- hasConditions(Request) - Static method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns true if the request contains conditions that save the server from sending a response
that the client has locally.
- hasErrors - Variable in class okhttp3.internal.cache.FaultHidingSink
-
- hash - Variable in class okhttp3.CertificatePinner.Pin
-
- hashAlgorithm - Variable in class okhttp3.CertificatePinner.Pin
-
Either sha1/
or sha256/
.
- hashCode() - Method in class okhttp3.Address
-
- hashCode() - Method in class okhttp3.CertificatePinner
-
- hashCode() - Method in class okhttp3.CertificatePinner.Pin
-
- 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
-
- hasJournalErrors - Variable in class okhttp3.internal.cache.DiskLruCache
-
- hasMoreChunks - Variable in class okhttp3.internal.http1.Http1Codec.ChunkedSource
-
- 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
-
- hasNextProxy() - Method in class okhttp3.internal.connection.RouteSelector
-
Returns true if there's another proxy to try.
- hasResponseHeaders - Variable in class okhttp3.internal.http2.Http2Stream
-
True if response headers have been sent or received.
- 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
-
- HEADER_LIMIT - Static variable in class okhttp3.internal.http1.Http1Codec
-
- HEADER_TABLE_SIZE - Static variable in class okhttp3.internal.http2.Settings
-
HTTP/2: Size in bytes of the table used to decode the sender's header blocks.
- headerCount - Variable in class okhttp3.internal.http2.Hpack.Reader
-
- headerCount - Variable in class okhttp3.internal.http2.Hpack.Writer
-
- headerLimit - Variable in class okhttp3.internal.http1.Http1Codec
-
- headerList - Variable in class okhttp3.internal.http2.Hpack.Reader
-
- Headers - Class in okhttp3
-
The header fields of a single HTTP message.
- Headers(Headers.Builder) - Constructor for class okhttp3.Headers
-
- Headers(String[]) - Constructor for class okhttp3.Headers
-
- headers(boolean, int, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- headers(boolean, int, int, List<Header>) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
Create or update incoming headers, creating the corresponding streams if necessary.
- headers(int, List<Header>) - Method in class okhttp3.internal.http2.Http2Writer
-
- headers(boolean, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Writer
-
- headers - Variable in class okhttp3.MultipartBody.Part
-
- headers() - Method in class okhttp3.MultipartBody.Part
-
- headers - Variable in class okhttp3.Request.Builder
-
- headers(Headers) - Method in class okhttp3.Request.Builder
-
Removes all headers on this builder and adds headers
.
- headers - Variable in class okhttp3.Request
-
- headers() - Method in class okhttp3.Request
-
- headers(String) - Method in class okhttp3.Request
-
- headers - Variable in class okhttp3.Response.Builder
-
- headers(Headers) - Method in class okhttp3.Response.Builder
-
Removes all headers on this builder and adds headers
.
- headers - Variable in class okhttp3.Response
-
- headers(String) - Method in class okhttp3.Response
-
- headers() - Method in class okhttp3.Response
-
- Headers.Builder - Class in okhttp3
-
- headerTableSizeSetting - Variable in class okhttp3.internal.http2.Hpack.Reader
-
- headerTableSizeSetting - Variable in class okhttp3.internal.http2.Hpack.Writer
-
- headerValue - Variable in class okhttp3.CacheControl
-
- headerValue() - Method in class okhttp3.CacheControl
-
- HEX_DIGITS - Static variable in class okhttp3.HttpUrl
-
- hexAV() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- hitCount - Variable in class okhttp3.Cache
-
- hitCount() - Method in class okhttp3.Cache
-
- host - Variable in class okhttp3.HttpUrl.Builder
-
- host(String) - Method in class okhttp3.HttpUrl.Builder
-
- host - Variable in class okhttp3.HttpUrl
-
Canonical hostname.
- host() - Method in class okhttp3.HttpUrl
-
Returns the host address suitable for use with InetAddress.getAllByName(String)
.
- HOST - Static variable in class okhttp3.internal.http2.Http2Codec
-
- host() - Method in class okhttp3.RealCall.AsyncCall
-
- hostAddresses - Variable in class okhttp3.FakeDns
-
- hostHeader(HttpUrl, boolean) - Static method in class okhttp3.internal.Util
-
- hostname - Variable in class okhttp3.internal.http2.Http2Connection.Builder
-
- hostname - Variable in class okhttp3.internal.http2.Http2Connection
-
- hostnameVerifier - Variable in class okhttp3.Address
-
- hostnameVerifier() - Method in class okhttp3.Address
-
Returns the hostname verifier, or null if this is not an HTTPS address.
- hostnameVerifier - Variable in class okhttp3.OkHttpClient.Builder
-
- 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 - Variable in class okhttp3.OkHttpClient
-
- hostnameVerifier() - Method in class okhttp3.OkHttpClient
-
- hostOnly - Variable in class okhttp3.Cookie.Builder
-
- hostOnly - Variable in class okhttp3.Cookie
-
- 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.
- Hpack - Class in okhttp3.internal.http2
-
Read and write HPACK v10.
- Hpack() - Constructor for class okhttp3.internal.http2.Hpack
-
- Hpack.Reader - Class in okhttp3.internal.http2
-
- Hpack.Writer - Class in okhttp3.internal.http2
-
- hpackBuffer - Variable in class okhttp3.internal.http2.Http2Writer
-
- hpackReader - Variable in class okhttp3.internal.http2.Http2Reader
-
- hpackSize - Variable in class okhttp3.internal.http2.Header
-
- hpackWriter - Variable in class okhttp3.internal.http2.Http2Writer
-
- 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
-
- Http1Codec.AbstractSource - Class in okhttp3.internal.http1
-
- Http1Codec.ChunkedSink - Class in okhttp3.internal.http1
-
An HTTP body with alternating chunk sizes and chunk bodies.
- Http1Codec.ChunkedSource - Class in okhttp3.internal.http1
-
An HTTP body with alternating chunk sizes and chunk bodies.
- Http1Codec.FixedLengthSink - Class in okhttp3.internal.http1
-
An HTTP body with a fixed length known in advance.
- Http1Codec.FixedLengthSource - Class in okhttp3.internal.http1
-
An HTTP body with a fixed length specified in advance.
- Http1Codec.UnknownLengthSource - Class in okhttp3.internal.http1
-
An HTTP message body terminated by the end of the underlying stream.
- Http2 - Class in okhttp3.internal.http2
-
- Http2() - Constructor for class okhttp3.internal.http2.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
-
- Http2Codec.StreamFinishingSource - Class in okhttp3.internal.http2
-
- http2Connection - Variable in class okhttp3.internal.connection.RealConnection
-
- Http2Connection - Class in okhttp3.internal.http2
-
A socket connection to a remote peer.
- Http2Connection(Http2Connection.Builder) - Constructor for class okhttp3.internal.http2.Http2Connection
-
- Http2Connection.Builder - Class in okhttp3.internal.http2
-
- Http2Connection.Listener - Class in okhttp3.internal.http2
-
Listener of streams and settings initiated by the peer.
- Http2Connection.PingRunnable - Class in okhttp3.internal.http2
-
- Http2Connection.ReaderRunnable - Class in okhttp3.internal.http2
-
Methods in this class must not lock FrameWriter.
- http2HeadersList(Request) - Static method in class okhttp3.internal.http2.Http2Codec
-
- Http2Reader - Class in okhttp3.internal.http2
-
Reads HTTP/2 transport frames.
- Http2Reader(BufferedSource, boolean) - Constructor for class okhttp3.internal.http2.Http2Reader
-
Creates a frame reader with max header table size of 4096.
- Http2Reader.ContinuationSource - Class in okhttp3.internal.http2
-
Decompression of the header block occurs above the framing layer.
- Http2Reader.Handler - Interface in okhttp3.internal.http2
-
- Http2Stream - Class in okhttp3.internal.http2
-
A logical bidirectional stream.
- Http2Stream(int, Http2Connection, boolean, boolean, List<Header>) - Constructor for class okhttp3.internal.http2.Http2Stream
-
- Http2Stream.FramingSink - Class in okhttp3.internal.http2
-
A sink that writes outgoing data frames of a stream.
- Http2Stream.FramingSource - Class in okhttp3.internal.http2
-
A source that reads the incoming data frames of a stream.
- Http2Stream.StreamTimeout - Class in okhttp3.internal.http2
-
- Http2Writer - Class in okhttp3.internal.http2
-
Writes HTTP/2 transport frames.
- Http2Writer(BufferedSink, boolean) - Constructor for class okhttp3.internal.http2.Http2Writer
-
- HTTP_2_SKIPPED_REQUEST_HEADERS - Static variable in class okhttp3.internal.http2.Http2Codec
-
See http://tools.ietf.org/html/draft-ietf-httpbis-http2-09#section-8.1.3.
- HTTP_2_SKIPPED_RESPONSE_HEADERS - Static variable in class okhttp3.internal.http2.Http2Codec
-
- 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.
- httpCodec - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- HttpDate - Class in okhttp3.internal.http
-
Best-effort parser for HTTP dates.
- HttpDate() - Constructor for class okhttp3.internal.http.HttpDate
-
- HttpEntityBody - Class in okhttp3.apache
-
- HttpEntityBody(HttpEntity, String) - Constructor for class okhttp3.apache.HttpEntityBody
-
- HttpHeaders - Class in okhttp3.internal.http
-
Headers and utilities for internal use by OkHttp.
- HttpHeaders() - Constructor for class okhttp3.internal.http.HttpHeaders
-
- 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
-
- HttpMethod() - Constructor for class okhttp3.internal.http.HttpMethod
-
- httpOnly - Variable in class okhttp3.Cookie.Builder
-
- httpOnly() - Method in class okhttp3.Cookie.Builder
-
- httpOnly - Variable in class okhttp3.Cookie
-
- 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(HttpUrl.Builder) - Constructor for class okhttp3.HttpUrl
-
- HttpUrl.Builder - Class in okhttp3
-
- HttpUrl.Builder.ParseResult - Enum in okhttp3
-
- Huffman - Class in okhttp3.internal.http2
-
This class was originally composed from the following classes in
Twitter Hpack.
- Huffman() - Constructor for class okhttp3.internal.http2.Huffman
-
- Huffman.Node - Class in okhttp3.internal.http2
-