Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W Y 

A

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.

B

B0_FLAG_FIN - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 0 flag for whether this is the final fragment in a message.
B0_FLAG_RSV1 - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 0 reserved flag 1.
B0_FLAG_RSV2 - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 0 reserved flag 2.
B0_FLAG_RSV3 - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 0 reserved flag 3.
B0_MASK_OPCODE - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 0 mask for the frame opcode.
B1_FLAG_MASK - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 1 flag for whether the payload data is masked.
B1_MASK_LENGTH - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Byte 1 mask for the payload length.
basic(String, String) - Static method in class okhttp3.Credentials
Returns an auth credential for the Basic scheme.
basic(String, String, Charset) - Static method in class okhttp3.Credentials
 
BasicCertificateChainCleaner - Class in okhttp3.internal.tls
A certificate chain cleaner that uses a set of trusted root certificates to build the trusted chain.
BasicCertificateChainCleaner(TrustRootIndex) - Constructor for class okhttp3.internal.tls.BasicCertificateChainCleaner
 
BasicTrustRootIndex - Class in okhttp3.internal.tls
A simple index that of trusted root certificates that have been loaded into memory.
BasicTrustRootIndex(X509Certificate...) - Constructor for class okhttp3.internal.tls.BasicTrustRootIndex
 
beg - Variable in class okhttp3.internal.tls.DistinguishedNameParser
 
BINARY - Static variable in class okhttp3.internal.http2.Http2
 
binarySearchBytes(byte[], byte[][], int) - Static method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
body - Variable in class okhttp3.Cache.CacheRequestImpl
 
body() - Method in class okhttp3.Cache.CacheRequestImpl
 
body() - Method in interface okhttp3.internal.cache.CacheRequest
 
body - Variable in class okhttp3.MultipartBody.Part
 
body() - Method in class okhttp3.MultipartBody.Part
 
body - Variable in class okhttp3.Request
 
body() - Method in class okhttp3.Request
 
body - Variable in class okhttp3.Request.Builder
 
body - Variable in class okhttp3.Response
 
body() - Method in class okhttp3.Response
Returns a non-null value if this response was passed to Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned from Call.execute().
body - Variable in class okhttp3.Response.Builder
 
body(ResponseBody) - Method in class okhttp3.Response.Builder
 
bodyHasUnknownEncoding(Headers) - Method in class okhttp3.logging.HttpLoggingInterceptor
 
bodySource - Variable in class okhttp3.Cache.CacheResponseBody
 
bomAwareCharset(BufferedSource, Charset) - Static method in class okhttp3.internal.Util
 
BomAwareReader(BufferedSource, Charset) - Constructor for class okhttp3.ResponseBody.BomAwareReader
 
boundary - Variable in class okhttp3.MultipartBody
 
boundary() - Method in class okhttp3.MultipartBody
 
boundary - Variable in class okhttp3.MultipartBody.Builder
 
BridgeInterceptor - Class in okhttp3.internal.http
Bridges from application code to network code.
BridgeInterceptor(CookieJar) - Constructor for class okhttp3.internal.http.BridgeInterceptor
 
BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS - Static variable in class okhttp3.internal.http.HttpDate
If we fail to parse a date in a non-standard format, try each of these formats in sequence.
BROWSER_COMPATIBLE_DATE_FORMATS - Static variable in class okhttp3.internal.http.HttpDate
 
buffer - Variable in class okhttp3.internal.cache2.Relay
The most recently read bytes from Relay.upstream.
buffer - Variable in class okhttp3.internal.huc.BufferedRequestBody
 
buffer - Variable in class okhttp3.internal.ws.WebSocketWriter
 
BufferedRequestBody - Class in okhttp3.internal.huc
This request body involves an application thread only.
BufferedRequestBody(long) - Constructor for class okhttp3.internal.huc.BufferedRequestBody
 
bufferMaxSize - Variable in class okhttp3.internal.cache2.Relay
The maximum size of buffer.
build() - Method in class okhttp3.CacheControl.Builder
 
build() - Method in class okhttp3.CertificatePinner.Builder
 
build() - Method in class okhttp3.ConnectionSpec.Builder
 
build() - Method in class okhttp3.Cookie.Builder
 
build() - Method in class okhttp3.FormBody.Builder
 
build() - Method in class okhttp3.Headers.Builder
 
build() - Method in class okhttp3.HttpUrl.Builder
 
build() - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
build() - Method in class okhttp3.MultipartBody.Builder
Assemble the specified parts into a request body.
build() - Method in class okhttp3.OkHttpClient.Builder
 
build() - Method in class okhttp3.Request.Builder
 
build() - Method in class okhttp3.Response.Builder
 
buildCall() - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
buildCertificateChainCleaner(X509TrustManager) - Method in class okhttp3.internal.platform.Platform
 
buildCertificateChainCleaner(SSLSocketFactory) - Method in class okhttp3.internal.platform.Platform
 
Builder() - Constructor for class okhttp3.CacheControl.Builder
 
Builder() - Constructor for class okhttp3.CertificatePinner.Builder
 
Builder(boolean) - Constructor for class okhttp3.ConnectionSpec.Builder
 
Builder(ConnectionSpec) - Constructor for class okhttp3.ConnectionSpec.Builder
 
Builder() - Constructor for class okhttp3.Cookie.Builder
 
Builder() - Constructor for class okhttp3.FormBody.Builder
 
Builder(Charset) - Constructor for class okhttp3.FormBody.Builder
 
Builder() - Constructor for class okhttp3.Headers.Builder
 
Builder() - Constructor for class okhttp3.HttpUrl.Builder
 
Builder(boolean) - Constructor for class okhttp3.internal.http2.Http2Connection.Builder
 
Builder() - Constructor for class okhttp3.MultipartBody.Builder
 
Builder(String) - Constructor for class okhttp3.MultipartBody.Builder
 
Builder() - Constructor for class okhttp3.OkHttpClient.Builder
 
Builder(OkHttpClient) - Constructor for class okhttp3.OkHttpClient.Builder
 
Builder() - Constructor for class okhttp3.Request.Builder
 
Builder(Request) - Constructor for class okhttp3.Request.Builder
 
Builder() - Constructor for class okhttp3.Response.Builder
 
Builder(Response) - Constructor for class okhttp3.Response.Builder
 
buildIfSupported() - Static method in class okhttp3.internal.platform.Jdk9Platform
 
buildIfSupported() - Static method in class okhttp3.internal.platform.JdkWithJettyBootPlatform
 
buildTree() - Method in class okhttp3.internal.http2.Huffman
 
buildTrustRootIndex(X509TrustManager) - Method in class okhttp3.internal.platform.Platform
 
byteCount() - Method in class okhttp3.Headers
Returns the number of bytes required to encode these headers using HTTP/1.1.
bytes() - Method in class okhttp3.ResponseBody
Returns the response as a byte array.
bytesLeftInWriteWindow - Variable in class okhttp3.internal.http2.Http2Connection
Count of bytes that can be written on the connection before receiving a window update.
bytesLeftInWriteWindow - Variable in class okhttp3.internal.http2.Http2Stream
Count of bytes that can be written on the stream before receiving a window update.
bytesRead - Variable in class okhttp3.internal.http1.Http1Codec.AbstractSource
 
bytesRead - Variable in class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
 
bytesRemaining - Variable in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
 
bytesRemaining - Variable in class okhttp3.internal.http1.Http1Codec.FixedLengthSource
 
bytesRemainingInChunk - Variable in class okhttp3.internal.http1.Http1Codec.ChunkedSource
 
byteStream() - Method in class okhttp3.ResponseBody
 

C

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
The maximum amount of time after the client calls RealWebSocket.close(int, java.lang.String) to wait for a graceful shutdown.
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
Deprecated.
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
Returns the number of bytes that will be written to sink in a call to RequestBody.writeTo(okio.BufferedSink), or -1 if that count is unknown.
contentLength() - Method in class okhttp3.ResponseBody
Returns the number of bytes in that will returned by ResponseBody.bytes(), or ResponseBody.byteStream(), or -1 if unknown.
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
An RFC 6265 Cookie.
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
Creates an instance of the EventListener for a particular Call.
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
 

D

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
A HttpLoggingInterceptor.Logger defaults output appropriate for the current platform.
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
 

E

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
There is a cycle between the Call and EventListener that makes this awkward.
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().

F

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
 

G

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.

H

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
The hash of the pinned certificate using CertificatePinner.Pin.hashAlgorithm.
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
The Okio timeout watchdog will call Http2Stream.StreamTimeout.timedOut() if the timeout is reached.
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
Adapts an HttpEntity to OkHttp's RequestBody.
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
 

I

id - Variable in class okhttp3.internal.http2.Http2Stream
 
idleAtNanos - Variable in class okhttp3.internal.connection.RealConnection
Nanotime timestamp when allocations.size() reached zero.
idleCallback - Variable in class okhttp3.Dispatcher
 
idleConnectionCount() - Method in class okhttp3.ConnectionPool
Returns the number of idle connections in the pool.
illegalArgument(String, Object...) - Static method in class okhttp3.internal.http2.Http2
 
immutable - Variable in class okhttp3.CacheControl.Builder
 
immutable() - Method in class okhttp3.CacheControl.Builder
 
immutable - Variable in class okhttp3.CacheControl
 
immutable() - Method in class okhttp3.CacheControl
 
immutableList(List<T>) - Static method in class okhttp3.internal.Util
Returns an immutable copy of list.
immutableList(T...) - Static method in class okhttp3.internal.Util
Returns an immutable list containing elements.
includeAuthorityInRequestLine(Request, Proxy.Type) - Static method in class okhttp3.internal.http.RequestLine
Returns true if the request line should contain the full URL with host and port (like "GET http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").
index - Variable in class okhttp3.internal.http.RealInterceptorChain
 
indexOf(Comparator<String>, String[], String) - Static method in class okhttp3.internal.Util
 
indexOfControlOrNonAscii(String) - Static method in class okhttp3.internal.Util
Returns the index of the first character in input that is either a control character (like or \n) or a non-ASCII character.
inet6AddressToAscii(byte[]) - Static method in class okhttp3.internal.Util
Encodes an IPv6 address in canonical form according to RFC 5952.
inetSocketAddress - Variable in class okhttp3.Route
 
inetSocketAddresses - Variable in class okhttp3.internal.connection.RouteSelector
 
INFO - Static variable in class okhttp3.internal.platform.Platform
 
INITIAL_MAX_FRAME_SIZE - Static variable in class okhttp3.internal.http2.Http2
The initial max frame size, applied independently writing to, or reading from the peer.
INITIAL_WINDOW_SIZE - Static variable in class okhttp3.internal.http2.Settings
Window size in bytes.
initialize() - Method in class okhttp3.Cache
Initialize the cache.
initialize() - Method in class okhttp3.internal.cache.DiskLruCache
 
initialized - Variable in class okhttp3.internal.cache.DiskLruCache
 
initializeInstanceForTests() - Static method in class okhttp3.internal.Internal
 
initOutputStream(BufferedSink, long) - Method in class okhttp3.internal.huc.OutputStreamRequestBody
 
initReaderAndWriter(String, RealWebSocket.Streams) - Method in class okhttp3.internal.ws.RealWebSocket
 
InMemoryFileSystem - Class in okhttp3.internal.io
A simple file system where all files are held in memory.
InMemoryFileSystem() - Constructor for class okhttp3.internal.io.InMemoryFileSystem
 
inputExhausted - Variable in class okhttp3.internal.http1.Http1Codec.UnknownLengthSource
 
insertIntoDynamicTable(int, Header) - Method in class okhttp3.internal.http2.Hpack.Reader
index == -1 when new.
insertIntoDynamicTable(Header) - Method in class okhttp3.internal.http2.Hpack.Writer
 
InstallUncaughtExceptionHandlerListener - Class in okhttp3.testing
A RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android.
InstallUncaughtExceptionHandlerListener() - Constructor for class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
INSTANCE - Static variable in class okhttp3.internal.http2.Huffman
 
instance - Static variable in class okhttp3.internal.Internal
 
instance - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
INSTANCE - Static variable in class okhttp3.internal.tls.OkHostnameVerifier
 
INSTANCES - Static variable in class okhttp3.CipherSuite
Holds interned instances.
intercept(Interceptor.Chain) - Method in interface okhttp3.Interceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.cache.CacheInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.connection.ConnectInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.http.BridgeInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.http.CallServerInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.internal.huc.OkHttpURLConnection.NetworkInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.logging.HttpLoggingInterceptor
 
Interceptor - Interface in okhttp3
Observes, modifies, and potentially short-circuits requests going out and the corresponding responses coming back in.
INTERCEPTOR - Static variable in exception okhttp3.internal.huc.OkHttpURLConnection.UnexpectedException
 
Interceptor.Chain - Interface in okhttp3
 
interceptors - Variable in class okhttp3.internal.http.RealInterceptorChain
 
interceptors - Variable in class okhttp3.OkHttpClient.Builder
 
interceptors() - Method in class okhttp3.OkHttpClient.Builder
Returns a modifiable list of interceptors that observe the full span of each call: from before the connection is established (if any) until after the response source is selected (either the origin server, cache, or both).
interceptors - Variable in class okhttp3.OkHttpClient
 
interceptors() - Method in class okhttp3.OkHttpClient
Returns an immutable list of interceptors that observe the full span of each call: from before the connection is established (if any) until after the response source is selected (either the origin server, cache, or both).
Internal - Class in okhttp3.internal
Escalate internal APIs in okhttp3 so they can be used from OkHttp's implementation packages.
Internal() - Constructor for class okhttp3.internal.Internal
 
internalCache - Variable in class okhttp3.Cache
 
InternalCache - Interface in okhttp3.internal.cache
OkHttp's internal cache interface.
internalCache - Variable in class okhttp3.OkHttpClient.Builder
 
internalCache - Variable in class okhttp3.OkHttpClient
 
internalCache() - Method in class okhttp3.OkHttpClient
 
intersect(Comparator<? super String>, String[], String[]) - Static method in class okhttp3.internal.Util
Returns an array containing only elements found in first and also in second.
invalidate() - Method in class okhttp3.FakeSSLSession
 
invalidatesCache(String) - Static method in class okhttp3.internal.http.HttpMethod
 
invalidLengths(String[]) - Method in class okhttp3.internal.cache.DiskLruCache.Entry
 
invoke(Object, Method, Object[]) - Method in class okhttp3.internal.platform.JdkWithJettyBootPlatform.JettyNegoProvider
 
invoke(T, Object...) - Method in class okhttp3.internal.platform.OptionalMethod
Invokes the method on target with args.
invokeOptional(T, Object...) - Method in class okhttp3.internal.platform.OptionalMethod
Invokes the method on target with args.
invokeOptionalWithoutCheckedException(T, Object...) - Method in class okhttp3.internal.platform.OptionalMethod
Invokes the method on target.
invokeWithoutCheckedException(T, Object...) - Method in class okhttp3.internal.platform.OptionalMethod
Invokes the method on target.
ioException(String, Object...) - Static method in class okhttp3.internal.http2.Http2
 
isAndroidGetsocknameError(AssertionError) - Static method in class okhttp3.internal.Util
Returns true if e is due to a firmware bug fixed after Android 4.2.2.
isCacheable(Response, Request) - Static method in class okhttp3.internal.cache.CacheStrategy
Returns true if response can be stored to later serve another request.
isCanceled() - Method in interface okhttp3.Call
 
isCanceled() - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
isCanceled() - Method in class okhttp3.RealCall
 
isCleartextTrafficPermitted(String) - Method in class okhttp3.internal.platform.Platform
 
isClient - Variable in class okhttp3.internal.ws.WebSocketReader
 
isClient - Variable in class okhttp3.internal.ws.WebSocketWriter
 
isClosed() - Method in class okhttp3.Cache
 
isClosed() - Method in class okhttp3.internal.cache.DiskLruCache
Returns true if this cache has been closed.
isClosed() - Method in class okhttp3.internal.cache2.Relay
 
isClosed() - Method in class okhttp3.internal.http1.Http1Codec
Returns true if this connection is closed.
isClosed() - Method in class okhttp3.internal.huc.OutputStreamRequestBody
 
isCompatible(SSLSocket) - Method in class okhttp3.ConnectionSpec
Returns true if the socket, as currently configured, supports this connection spec.
isConscryptPreferred() - Static method in class okhttp3.internal.platform.Platform
 
isContentSpecificHeader(String) - Static method in class okhttp3.internal.cache.CacheInterceptor
Returns true if fieldName is content specific and therefore should always be used from cached headers.
isControlFrame - Variable in class okhttp3.internal.ws.WebSocketReader
 
isDot(String) - Method in class okhttp3.HttpUrl.Builder
 
isDotDot(String) - Method in class okhttp3.HttpUrl.Builder
 
isEligible(Address, Route) - Method in class okhttp3.internal.connection.RealConnection
Returns true if this connection can carry a stream allocation to address.
isEndToEnd(String) - Static method in class okhttp3.internal.cache.CacheInterceptor
Returns true if fieldName is an end-to-end HTTP header, as defined by RFC 2616, 13.5.1.
isExecuted() - Method in interface okhttp3.Call
Returns true if this call has been either executed or enqueued.
isExecuted() - Method in class okhttp3.RealCall
 
isFallback - Variable in class okhttp3.internal.connection.ConnectionSpecSelector
 
isFallbackPossible - Variable in class okhttp3.internal.connection.ConnectionSpecSelector
 
isFallbackPossible(SSLSocket) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
Returns true if any later ConnectionSpec in the fallback strategy looks possible based on the supplied SSLSocket.
isFinalFrame - Variable in class okhttp3.internal.ws.WebSocketReader
 
isFirstFrame - Variable in class okhttp3.internal.ws.WebSocketWriter.FrameSink
 
isFreshnessLifetimeHeuristic() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
Returns true if computeFreshnessLifetime used a heuristic.
isHealthy(boolean) - Method in class okhttp3.internal.connection.RealConnection
Returns true if this connection is ready to host new streams.
isHttps() - Method in class okhttp3.Cache.Entry
 
isHttps() - Method in class okhttp3.HttpUrl
 
isHttps() - Method in class okhttp3.Request
 
isLocallyInitiated() - Method in class okhttp3.internal.http2.Http2Stream
Returns true if this stream was created by this peer.
isMultiplexed() - Method in class okhttp3.internal.connection.RealConnection
Returns true if this is an HTTP/2 connection.
ISO_8859_1 - Static variable in class okhttp3.internal.Util
 
isOpen() - Method in class okhttp3.internal.http2.Http2Stream
Returns true if this stream is open.
isPlaintext(Buffer) - Static method in class okhttp3.logging.HttpLoggingInterceptor
Returns true if the body in question probably contains human readable text.
isPrivate - Variable in class okhttp3.CacheControl
 
isPrivate() - Method in class okhttp3.CacheControl
 
isPublic - Variable in class okhttp3.CacheControl
 
isPublic() - Method in class okhttp3.CacheControl
 
isRecoverable(IOException, boolean) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
isRedirect() - Method in class okhttp3.Response
Returns true if this response redirects to another resource.
isSet(int) - Method in class okhttp3.internal.http2.Settings
Returns true if a value has been assigned for the setting id.
isShutdown() - Method in class okhttp3.internal.http2.Http2Connection
 
isStaticHeader(int) - Method in class okhttp3.internal.http2.Hpack.Reader
 
isSuccessful() - Method in class okhttp3.Response
Returns true if the code is in [200..300), which means the request was successfully received, understood, and accepted.
isSupported(T) - Method in class okhttp3.internal.platform.OptionalMethod
Returns true if the method exists on the supplied target.
isTls() - Method in class okhttp3.ConnectionSpec
 
isValid() - Method in class okhttp3.FakeSSLSession
 
isValid(SSLSession) - Method in class okhttp3.internal.connection.RealConnection
 

J

javaName - Variable in class okhttp3.CipherSuite
 
javaName() - Method in class okhttp3.CipherSuite
Returns the Java name of this cipher suite.
javaName - Variable in enum okhttp3.TlsVersion
 
javaName() - Method in enum okhttp3.TlsVersion
 
JavaNetAuthenticator - Class in okhttp3
Adapts Authenticator to Authenticator.
JavaNetAuthenticator() - Constructor for class okhttp3.JavaNetAuthenticator
 
JavaNetCookieJar - Class in okhttp3
A cookie jar that delegates to a CookieHandler.
JavaNetCookieJar(CookieHandler) - Constructor for class okhttp3.JavaNetCookieJar
 
JavaNetHeaders - Class in okhttp3.internal
 
JavaNetHeaders() - Constructor for class okhttp3.internal.JavaNetHeaders
 
Jdk9Platform - Class in okhttp3.internal.platform
OpenJDK 9+.
Jdk9Platform(Method, Method) - Constructor for class okhttp3.internal.platform.Jdk9Platform
 
JdkWithJettyBootPlatform - Class in okhttp3.internal.platform
OpenJDK 7 or OpenJDK 8 with org.mortbay.jetty.alpn/alpn-boot in the boot class path.
JdkWithJettyBootPlatform(Method, Method, Method, Class<?>, Class<?>) - Constructor for class okhttp3.internal.platform.JdkWithJettyBootPlatform
 
JdkWithJettyBootPlatform.JettyNegoProvider - Class in okhttp3.internal.platform
Handle the methods of ALPN's ClientProvider and ServerProvider without a compile-time dependency on those interfaces.
JettyNegoProvider(List<String>) - Constructor for class okhttp3.internal.platform.JdkWithJettyBootPlatform.JettyNegoProvider
 
JOURNAL_FILE - Static variable in class okhttp3.internal.cache.DiskLruCache
 
JOURNAL_FILE_BACKUP - Static variable in class okhttp3.internal.cache.DiskLruCache
 
JOURNAL_FILE_TEMP - Static variable in class okhttp3.internal.cache.DiskLruCache
 
journalFile - Variable in class okhttp3.internal.cache.DiskLruCache
 
journalFileBackup - Variable in class okhttp3.internal.cache.DiskLruCache
 
journalFileTmp - Variable in class okhttp3.internal.cache.DiskLruCache
 
journalRebuildRequired() - Method in class okhttp3.internal.cache.DiskLruCache
We only rebuild the journal when it will halve the size of the journal and eliminate at least 2000 ops.
journalWriter - Variable in class okhttp3.internal.cache.DiskLruCache
 

K

KEEP_ALIVE - Static variable in class okhttp3.internal.http2.Http2Codec
 
keepAliveDurationNs - Variable in class okhttp3.ConnectionPool
 
key(HttpUrl) - Static method in class okhttp3.Cache
 
key - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
 
key - Variable in class okhttp3.internal.cache.DiskLruCache.Snapshot
 
key() - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
 
key - Variable in class okhttp3.internal.ws.RealWebSocket
 

L

lastException - Variable in exception okhttp3.internal.connection.RouteException
 
lastGoodStreamId - Variable in class okhttp3.internal.http2.Http2Connection
 
lastModified - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
The last modified date of the cached response, if known.
lastModifiedString - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
 
lastTestStarted - Variable in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
left - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
LEGAL_KEY_PATTERN - Static variable in class okhttp3.internal.cache.DiskLruCache
 
length - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
length - Variable in class okhttp3.internal.tls.DistinguishedNameParser
 
lengths - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
Lengths of this entry's files.
lengths - Variable in class okhttp3.internal.cache.DiskLruCache.Snapshot
 
lengthWithoutPadding(int, byte, short) - Static method in class okhttp3.internal.http2.Http2Reader
 
level - Variable in class okhttp3.logging.HttpLoggingInterceptor
 
Level() - Constructor for enum okhttp3.logging.HttpLoggingInterceptor.Level
 
listener - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
listener(Http2Connection.Listener) - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
listener - Variable in class okhttp3.internal.http2.Http2Connection
User code to run in response to incoming streams or settings.
Listener() - Constructor for class okhttp3.internal.http2.Http2Connection.Listener
 
listener - Variable in class okhttp3.internal.ws.RealWebSocket
 
listenerExecutor - Static variable in class okhttp3.internal.http2.Http2Connection
Shared executor to send notifications of incoming streams.
listRead - Variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
True after we've attempted to read the list for the first time.
loadForRequest(HttpUrl) - Method in interface okhttp3.CookieJar
Load cookies from the jar for an HTTP request to url.
loadForRequest(HttpUrl) - Method in class okhttp3.JavaNetCookieJar
 
loadForRequest(HttpUrl) - Method in class okhttp3.RecordingCookieJar
 
localCertificates - Variable in class okhttp3.Handshake
 
localCertificates() - Method in class okhttp3.Handshake
Returns a possibly-empty list of certificates that identify this peer.
localPrincipal() - Method in class okhttp3.Handshake
Returns the local principle, or null if this peer is anonymous.
lock - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
log(int, String, Throwable) - Method in class okhttp3.internal.platform.Platform
 
log(String) - Method in interface okhttp3.logging.HttpLoggingInterceptor.Logger
 
logCloseableLeak(String, Object) - Method in class okhttp3.internal.platform.Platform
 
logger - Static variable in class okhttp3.internal.http2.Http2Reader
 
logger - Static variable in class okhttp3.internal.http2.Http2Writer
 
logger - Static variable in class okhttp3.internal.platform.Platform
 
logger - Variable in class okhttp3.logging.HttpLoggingInterceptor
 
lookup(String) - Method in interface okhttp3.Dns
Returns the IP addresses of hostname, in the order they will be attempted by OkHttp.
lookup(String, int) - Method in class okhttp3.FakeDns
 
lookup(String) - Method in class okhttp3.FakeDns
 
loopReader() - Method in class okhttp3.internal.ws.RealWebSocket
Receive frames until there are no more.
lruEntries - Variable in class okhttp3.internal.cache.DiskLruCache
 

M

MAGIC - Static variable in class okhttp3.internal.cache.DiskLruCache
 
maskCursor - Variable in class okhttp3.internal.ws.WebSocketReader
 
maskCursor - Variable in class okhttp3.internal.ws.WebSocketWriter
 
maskKey - Variable in class okhttp3.internal.ws.WebSocketReader
 
maskKey - Variable in class okhttp3.internal.ws.WebSocketWriter
 
matches(Request, Response) - Method in class okhttp3.Cache.Entry
 
matches(String) - Method in class okhttp3.CertificatePinner.Pin
 
matches(HttpUrl) - Method in class okhttp3.Cookie
Returns true if this cookie should be included on a request to url.
MAX_CONCURRENT_STREAMS - Static variable in class okhttp3.internal.http2.Settings
Sender's maximum number of concurrent streams.
MAX_DATE - Static variable in class okhttp3.internal.http.HttpDate
The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT".
MAX_FOLLOW_UPS - Static variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
How many redirects and auth challenges should we attempt? Chrome follows 21 redirects; Firefox, curl, and wget follow 20; Safari follows 16; and HTTP/1.0 recommends 5.
MAX_FRAME_SIZE - Static variable in class okhttp3.internal.http2.Settings
HTTP/2: Size in bytes of the largest frame payload the sender will accept.
MAX_HEADER_LIST_SIZE - Static variable in class okhttp3.internal.http2.Settings
HTTP/2: Advisory only.
MAX_QUEUE_SIZE - Static variable in class okhttp3.internal.ws.RealWebSocket
The maximum number of bytes to enqueue.
MAX_SIGNERS - Static variable in class okhttp3.internal.tls.BasicCertificateChainCleaner
The maximum number of signers in a chain.
MAX_TUNNEL_ATTEMPTS - Static variable in class okhttp3.internal.connection.RealConnection
 
maxAge(int, TimeUnit) - Method in class okhttp3.CacheControl.Builder
Sets the maximum age of a cached response.
maxAgeSeconds - Variable in class okhttp3.CacheControl.Builder
 
maxAgeSeconds - Variable in class okhttp3.CacheControl
 
maxAgeSeconds() - Method in class okhttp3.CacheControl
The duration past the response's served date that it can be served without validation.
maxByteCount - Variable in class okhttp3.internal.http2.Http2Stream.FramingSource
Maximum number of bytes to buffer before reporting a flow control error.
maxConcurrentStreams() - Method in class okhttp3.internal.http2.Http2Connection
 
maxDataLength() - Method in class okhttp3.internal.http2.Http2Writer
The maximum size of bytes that may be sent in a single call to Http2Writer.data(boolean, int, okio.Buffer, int).
maxDynamicTableByteCount - Variable in class okhttp3.internal.http2.Hpack.Reader
 
maxDynamicTableByteCount() - Method in class okhttp3.internal.http2.Hpack.Reader
 
maxDynamicTableByteCount - Variable in class okhttp3.internal.http2.Hpack.Writer
 
maxFrameSize - Variable in class okhttp3.internal.http2.Http2Writer
 
maxIdleConnections - Variable in class okhttp3.ConnectionPool
The maximum number of idle connections for each address.
maxRequests - Variable in class okhttp3.Dispatcher
 
maxRequestsPerHost - Variable in class okhttp3.Dispatcher
 
maxSize() - Method in class okhttp3.Cache
 
maxSize - Variable in class okhttp3.internal.cache.DiskLruCache
 
maxStale(int, TimeUnit) - Method in class okhttp3.CacheControl.Builder
Accept cached responses that have exceeded their freshness lifetime by up to maxStale.
maxStaleSeconds - Variable in class okhttp3.CacheControl.Builder
 
maxStaleSeconds - Variable in class okhttp3.CacheControl
 
maxStaleSeconds() - Method in class okhttp3.CacheControl
 
mediaType - Variable in class okhttp3.apache.HttpEntityBody
 
MediaType - Class in okhttp3
An RFC 2045 Media Type, appropriate to describe the content type of an HTTP request or response body.
MediaType(String, String, String, String) - Constructor for class okhttp3.MediaType
 
mediaType - Variable in class okhttp3.MediaType
 
merge(Settings) - Method in class okhttp3.internal.http2.Settings
Writes other into this.
message - Variable in class okhttp3.Cache.Entry
 
message - Variable in class okhttp3.internal.http.StatusLine
 
Message(int, ByteString) - Constructor for class okhttp3.internal.ws.RealWebSocket.Message
 
message - Variable in class okhttp3.Response.Builder
 
message(String) - Method in class okhttp3.Response.Builder
 
message - Variable in class okhttp3.Response
 
message() - Method in class okhttp3.Response
Returns the HTTP status message.
messageAndCloseQueue - Variable in class okhttp3.internal.ws.RealWebSocket
Outgoing messages and close frames in the order they should be written.
messageFrameBuffer - Variable in class okhttp3.internal.ws.WebSocketReader
 
metadata - Variable in class okhttp3.internal.cache2.Relay
User-supplied additional data persisted with the source data.
metadata() - Method in class okhttp3.internal.cache2.Relay
 
method - Variable in class okhttp3.Request.Builder
 
method(String, RequestBody) - Method in class okhttp3.Request.Builder
 
method - Variable in class okhttp3.Request
 
method() - Method in class okhttp3.Request
 
methodName - Variable in class okhttp3.internal.platform.OptionalMethod
 
methodParams - Variable in class okhttp3.internal.platform.OptionalMethod
 
METHODS - Static variable in class okhttp3.internal.huc.OkHttpURLConnection
 
minFresh(int, TimeUnit) - Method in class okhttp3.CacheControl.Builder
Sets the minimum number of seconds that a response will continue to be fresh for.
minFreshSeconds - Variable in class okhttp3.CacheControl.Builder
 
minFreshSeconds - Variable in class okhttp3.CacheControl
 
minFreshSeconds() - Method in class okhttp3.CacheControl
 
MIXED - Static variable in class okhttp3.MultipartBody
The "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order.
MODERN_TLS - Static variable in class okhttp3.ConnectionSpec
A modern TLS connection with extensions like SNI and ALPN available.
MONTH_PATTERN - Static variable in class okhttp3.Cookie
 
mostRecentRebuildFailed - Variable in class okhttp3.internal.cache.DiskLruCache
 
mostRecentTrimFailed - Variable in class okhttp3.internal.cache.DiskLruCache
 
MultipartBody - Class in okhttp3
An RFC 2387-compliant request body.
MultipartBody(ByteString, MediaType, List<MultipartBody.Part>) - Constructor for class okhttp3.MultipartBody
 
MultipartBody.Builder - Class in okhttp3
 
MultipartBody.Part - Class in okhttp3
 
mustRevalidate - Variable in class okhttp3.CacheControl
 
mustRevalidate() - Method in class okhttp3.CacheControl
 

N

name - Variable in class okhttp3.Cookie.Builder
 
name(String) - Method in class okhttp3.Cookie.Builder
 
name - Variable in class okhttp3.Cookie
 
name() - Method in class okhttp3.Cookie
Returns a non-empty string with this cookie's name.
name(int) - Method in class okhttp3.FormBody
 
name(int) - Method in class okhttp3.Headers
Returns the field at position.
name - Variable in class okhttp3.internal.http2.Header
Name in case-insensitive ASCII encoding.
name - Variable in class okhttp3.internal.NamedRunnable
 
NAME_TO_FIRST_INDEX - Static variable in class okhttp3.internal.http2.Hpack
 
NamedRunnable - Class in okhttp3.internal
Runnable implementation which always sets its thread name.
NamedRunnable(String, Object...) - Constructor for class okhttp3.internal.NamedRunnable
 
names - Variable in class okhttp3.FormBody.Builder
 
names() - Method in class okhttp3.Headers
Returns an immutable case-insensitive set of header names.
namesAndValues - Variable in class okhttp3.Headers.Builder
 
namesAndValues - Variable in class okhttp3.Headers
 
namesAndValuesToQueryString(StringBuilder, List<String>) - Static method in class okhttp3.HttpUrl
 
nameToFirstIndex() - Static method in class okhttp3.internal.http2.Hpack
 
NATURAL_ORDER - Static variable in class okhttp3.internal.Util
 
networkCount - Variable in class okhttp3.Cache
 
networkCount() - Method in class okhttp3.Cache
 
networkInterceptor - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
NetworkInterceptor() - Constructor for class okhttp3.internal.huc.OkHttpURLConnection.NetworkInterceptor
 
networkInterceptors - Variable in class okhttp3.OkHttpClient.Builder
 
networkInterceptors() - Method in class okhttp3.OkHttpClient.Builder
Returns a modifiable list of interceptors that observe a single network request and response.
networkInterceptors - Variable in class okhttp3.OkHttpClient
 
networkInterceptors() - Method in class okhttp3.OkHttpClient
Returns an immutable list of interceptors that observe a single network request and response.
networkRequest - Variable in class okhttp3.internal.cache.CacheStrategy
The request to send on the network, or null if this call doesn't use the network.
networkResponse - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
networkResponse - Variable in class okhttp3.Response.Builder
 
networkResponse(Response) - Method in class okhttp3.Response.Builder
 
networkResponse - Variable in class okhttp3.Response
 
networkResponse() - Method in class okhttp3.Response
Returns the raw response received from the network.
newBuilder() - Method in class okhttp3.Headers
 
newBuilder() - Method in class okhttp3.HttpUrl
 
newBuilder(String) - Method in class okhttp3.HttpUrl
Returns a builder for the URL that would be retrieved by following link from this URL, or null if the resulting URL is not well-formed.
newBuilder() - Method in class okhttp3.OkHttpClient
 
newBuilder() - Method in class okhttp3.Request
 
newBuilder() - Method in class okhttp3.Response
 
newCall(Request) - Method in interface okhttp3.Call.Factory
 
newCall(Request) - Method in class okhttp3.OkHttpClient
Prepares the request to be executed at some point in the future.
newChunkedSink() - Method in class okhttp3.internal.http1.Http1Codec
 
newChunkedSource(HttpUrl) - Method in class okhttp3.internal.http1.Http1Codec
 
newCodec(OkHttpClient, Interceptor.Chain, StreamAllocation) - Method in class okhttp3.internal.connection.RealConnection
 
newFixedLengthSink(long) - Method in class okhttp3.internal.http1.Http1Codec
 
newFixedLengthSource(long) - Method in class okhttp3.internal.http1.Http1Codec
 
newJournalWriter() - Method in class okhttp3.internal.cache.DiskLruCache
 
newMessageSink(int, long) - Method in class okhttp3.internal.ws.WebSocketWriter
Stream a message payload as a series of frames.
newRealCall(OkHttpClient, Request, boolean) - Static method in class okhttp3.RealCall
 
newSink(int) - Method in class okhttp3.internal.cache.DiskLruCache.Editor
Returns a new unbuffered output stream to write the value at index.
newSource(int) - Method in class okhttp3.internal.cache.DiskLruCache.Editor
Returns an unbuffered input stream to read the last committed value, or null if no value has been committed.
newSource() - Method in class okhttp3.internal.cache2.Relay
Returns a new source that returns the same bytes as upstream.
newStream(OkHttpClient, Interceptor.Chain, boolean) - Method in class okhttp3.internal.connection.StreamAllocation
 
newStream(List<Header>, boolean) - Method in class okhttp3.internal.http2.Http2Connection
Returns a new locally-initiated stream.
newStream(int, List<Header>, boolean) - Method in class okhttp3.internal.http2.Http2Connection
 
newTimeoutException(IOException) - Method in class okhttp3.internal.http2.Http2Stream.StreamTimeout
 
newUnknownLengthSource() - Method in class okhttp3.internal.http1.Http1Codec
 
newWebSocket(Request, WebSocketListener) - Method in class okhttp3.OkHttpClient
Uses request to connect a new web socket.
newWebSocket(Request, WebSocketListener) - Method in interface okhttp3.WebSocket.Factory
Creates a new web socket and immediately returns it.
newWebSocketCall(OkHttpClient, Request) - Method in class okhttp3.internal.Internal
 
newWebSocketStreams(StreamAllocation) - Method in class okhttp3.internal.connection.RealConnection
 
next() - Method in class okhttp3.internal.connection.RouteSelector
 
next() - Method in class okhttp3.internal.connection.RouteSelector.Selection
 
nextAddress - Variable in class okhttp3.FakeDns
 
nextAT() - Method in class okhttp3.internal.tls.DistinguishedNameParser
 
nextFrame(boolean, Http2Reader.Handler) - Method in class okhttp3.internal.http2.Http2Reader
 
nextHeaderIndex - Variable in class okhttp3.internal.http2.Hpack.Reader
 
nextHeaderIndex - Variable in class okhttp3.internal.http2.Hpack.Writer
 
nextModeIndex - Variable in class okhttp3.internal.connection.ConnectionSpecSelector
 
nextProxy() - Method in class okhttp3.internal.connection.RouteSelector
Returns the next proxy to try.
nextProxyIndex - Variable in class okhttp3.internal.connection.RouteSelector
 
nextRouteIndex - Variable in class okhttp3.internal.connection.RouteSelector.Selection
 
nextSequenceNumber - Variable in class okhttp3.internal.cache.DiskLruCache
To differentiate between old and current snapshots, each entry is given a sequence number each time an edit is committed.
nextStreamId - Variable in class okhttp3.internal.http2.Http2Connection
 
NO_CHUNK_YET - Static variable in class okhttp3.internal.http1.Http1Codec.ChunkedSource
 
NO_COOKIES - Static variable in interface okhttp3.CookieJar
A cookie jar that never accepts any cookies.
noCache - Variable in class okhttp3.CacheControl.Builder
 
noCache() - Method in class okhttp3.CacheControl.Builder
Don't accept an unvalidated cached response.
noCache - Variable in class okhttp3.CacheControl
 
noCache() - Method in class okhttp3.CacheControl
In a response, this field's name "no-cache" is misleading.
Node() - Constructor for class okhttp3.internal.http2.Huffman.Node
Construct an internal node.
Node(int, int) - Constructor for class okhttp3.internal.http2.Huffman.Node
Construct a terminal node.
NONE - Static variable in interface okhttp3.Authenticator
An authenticator that knows no credentials and makes no attempt to authenticate.
NONE - Static variable in class okhttp3.EventListener
 
nonEmptyIntersection(Comparator<String>, String[], String[]) - Static method in class okhttp3.internal.Util
Returns true if there is an element in first that is also in second.
noNewStreams - Variable in class okhttp3.internal.connection.RealConnection
If true, no new streams can be created on this connection.
noNewStreams() - Method in class okhttp3.internal.connection.StreamAllocation
Forbid new streams from being created on the connection that hosts this allocation.
noStore - Variable in class okhttp3.CacheControl.Builder
 
noStore() - Method in class okhttp3.CacheControl.Builder
Don't store the server's response in any cache.
noStore - Variable in class okhttp3.CacheControl
 
noStore() - Method in class okhttp3.CacheControl
If true, this response should not be cached.
noTransform - Variable in class okhttp3.CacheControl.Builder
 
noTransform() - Method in class okhttp3.CacheControl.Builder
Don't accept a transformed response.
noTransform - Variable in class okhttp3.CacheControl
 
noTransform() - Method in class okhttp3.CacheControl
 
nowMillis - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
 
NPE_THROW_WITH_NULL - Static variable in class okhttp3.internal.connection.RealConnection
 

O

of(String, int) - Static method in class okhttp3.CipherSuite
 
of(String...) - Static method in class okhttp3.Headers
Returns headers for the alternating header names and values.
of(Map<String, String>) - Static method in class okhttp3.Headers
Returns headers for the header names and values in the Map.
OkApacheClient - Class in okhttp3.apache
Deprecated.
OkHttp will be dropping its ability to be used with HttpClient in an upcoming release. Applications that need this should either downgrade to the Apache implementation or upgrade to OkHttp's Request/Response API.
OkApacheClient() - Constructor for class okhttp3.apache.OkApacheClient
Deprecated.
 
OkApacheClient(OkHttpClient) - Constructor for class okhttp3.apache.OkApacheClient
Deprecated.
 
OkHostnameVerifier - Class in okhttp3.internal.tls
A HostnameVerifier consistent with RFC 2818.
OkHostnameVerifier() - Constructor for class okhttp3.internal.tls.OkHostnameVerifier
 
okhttp3 - package okhttp3
An HTTP+HTTP/2 client for Android and Java applications.
okhttp3.apache - package okhttp3.apache
 
okhttp3.internal - package okhttp3.internal
 
okhttp3.internal.cache - package okhttp3.internal.cache
 
okhttp3.internal.cache2 - package okhttp3.internal.cache2
 
okhttp3.internal.connection - package okhttp3.internal.connection
 
okhttp3.internal.http - package okhttp3.internal.http
 
okhttp3.internal.http1 - package okhttp3.internal.http1
 
okhttp3.internal.http2 - package okhttp3.internal.http2
 
okhttp3.internal.huc - package okhttp3.internal.huc
 
okhttp3.internal.io - package okhttp3.internal.io
 
okhttp3.internal.platform - package okhttp3.internal.platform
 
okhttp3.internal.publicsuffix - package okhttp3.internal.publicsuffix
 
okhttp3.internal.tls - package okhttp3.internal.tls
 
okhttp3.internal.ws - package okhttp3.internal.ws
 
okhttp3.logging - package okhttp3.logging
An OkHttp interceptor which logs HTTP request and response data.
okhttp3.testing - package okhttp3.testing
 
OKHTTP_CLIENT_WINDOW_SIZE - Static variable in class okhttp3.internal.http2.Http2Connection
 
OkHttpClient - Class in okhttp3
Factory for calls, which can be used to send HTTP requests and read their responses.
OkHttpClient() - Constructor for class okhttp3.OkHttpClient
 
OkHttpClient(OkHttpClient.Builder) - Constructor for class okhttp3.OkHttpClient
 
OkHttpClient.Builder - Class in okhttp3
 
okHttpSettings - Variable in class okhttp3.internal.http2.Http2Connection
Settings we communicate to the peer.
OkHttpsURLConnection - Class in okhttp3.internal.huc
 
OkHttpsURLConnection(URL, OkHttpClient) - Constructor for class okhttp3.internal.huc.OkHttpsURLConnection
 
OkHttpsURLConnection(URL, OkHttpClient, URLFilter) - Constructor for class okhttp3.internal.huc.OkHttpsURLConnection
 
OkHttpsURLConnection(OkHttpURLConnection) - Constructor for class okhttp3.internal.huc.OkHttpsURLConnection
 
OkHttpURLConnection - Class in okhttp3.internal.huc
This implementation uses Call to send requests and receive responses.
OkHttpURLConnection(URL, OkHttpClient) - Constructor for class okhttp3.internal.huc.OkHttpURLConnection
 
OkHttpURLConnection(URL, OkHttpClient, URLFilter) - Constructor for class okhttp3.internal.huc.OkHttpURLConnection
 
OkHttpURLConnection.NetworkInterceptor - Class in okhttp3.internal.huc
The HttpURLConnection gives the application control between establishing the connection and transmitting the request body.
OkHttpURLConnection.UnexpectedException - Exception in okhttp3.internal.huc
 
OkUrlFactory - Class in okhttp3
Deprecated.
OkHttp will be dropping its ability to be used with HttpURLConnection in an upcoming release. Applications that need this should either downgrade to the system's built-in HttpURLConnection or upgrade to OkHttp's Request/Response API.
OkUrlFactory(OkHttpClient) - Constructor for class okhttp3.OkUrlFactory
Deprecated.
 
oldDefaultUncaughtExceptionHandler - Variable in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
onClosed(WebSocket, int, String) - Method in class okhttp3.WebSocketListener
Invoked when both peers have indicated that no more messages will be transmitted and the connection has been successfully released.
onClosing(WebSocket, int, String) - Method in class okhttp3.WebSocketListener
Invoked when the remote peer has indicated that no more incoming messages will be transmitted.
onData(int, BufferedSource, int, boolean) - Method in interface okhttp3.internal.http2.PushObserver
A chunk of response data corresponding to a pushed request.
onException(IOException) - Method in class okhttp3.internal.cache.FaultHidingSink
 
onFailure(Call, IOException) - Method in interface okhttp3.Callback
Called when the request could not be executed due to cancellation, a connectivity problem or timeout.
onFailure(Call, IOException) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
onFailure(WebSocket, Throwable, Response) - Method in class okhttp3.WebSocketListener
Invoked when a web socket has been closed due to an error reading from or writing to the network.
onHeaders(int, List<Header>, boolean) - Method in interface okhttp3.internal.http2.PushObserver
The response headers corresponding to a pushed request.
ONLY_HTTP1 - Static variable in class okhttp3.internal.ws.RealWebSocket
 
onlyIfCached - Variable in class okhttp3.CacheControl.Builder
 
onlyIfCached() - Method in class okhttp3.CacheControl.Builder
Only accept the response if it is in the cache.
onlyIfCached - Variable in class okhttp3.CacheControl
 
onlyIfCached() - Method in class okhttp3.CacheControl
This field's name "only-if-cached" is misleading.
onMessage(WebSocket, String) - Method in class okhttp3.WebSocketListener
Invoked when a text (type 0x1) message has been received.
onMessage(WebSocket, ByteString) - Method in class okhttp3.WebSocketListener
Invoked when a binary (type 0x2) message has been received.
onOpen(WebSocket, Response) - Method in class okhttp3.WebSocketListener
Invoked when a web socket has been accepted by the remote peer and may begin transmitting messages.
onReadClose(int, String) - Method in class okhttp3.internal.ws.RealWebSocket
 
onReadClose(int, String) - Method in interface okhttp3.internal.ws.WebSocketReader.FrameCallback
 
onReadMessage(String) - Method in class okhttp3.internal.ws.RealWebSocket
 
onReadMessage(ByteString) - Method in class okhttp3.internal.ws.RealWebSocket
 
onReadMessage(String) - Method in interface okhttp3.internal.ws.WebSocketReader.FrameCallback
 
onReadMessage(ByteString) - Method in interface okhttp3.internal.ws.WebSocketReader.FrameCallback
 
onReadPing(ByteString) - Method in class okhttp3.internal.ws.RealWebSocket
 
onReadPing(ByteString) - Method in interface okhttp3.internal.ws.WebSocketReader.FrameCallback
 
onReadPong(ByteString) - Method in class okhttp3.internal.ws.RealWebSocket
 
onReadPong(ByteString) - Method in interface okhttp3.internal.ws.WebSocketReader.FrameCallback
 
onRequest(int, List<Header>) - Method in interface okhttp3.internal.http2.PushObserver
Describes the request that the server intends to push a response for.
onReset(int, ErrorCode) - Method in interface okhttp3.internal.http2.PushObserver
Indicates the reason why this stream was canceled.
onResponse(Call, Response) - Method in interface okhttp3.Callback
Called when the HTTP response was successfully returned by the remote server.
onResponse(Call, Response) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
onSettings(Http2Connection) - Method in class okhttp3.internal.connection.RealConnection
When settings are received, adjust the allocation limit.
onSettings(Http2Connection) - Method in class okhttp3.internal.http2.Http2Connection.Listener
Notification that the connection's peer's settings may have changed.
onStream(Http2Stream) - Method in class okhttp3.internal.connection.RealConnection
Refuse incoming streams.
onStream(Http2Stream) - Method in class okhttp3.internal.http2.Http2Connection.Listener
Handle a new stream from this connection's peer.
opcode - Variable in class okhttp3.internal.ws.WebSocketReader
 
OPCODE_BINARY - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
OPCODE_CONTINUATION - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
OPCODE_CONTROL_CLOSE - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
OPCODE_CONTROL_PING - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
OPCODE_CONTROL_PONG - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
OPCODE_FLAG_CONTROL - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Flag in the opcode which indicates a control frame.
OPCODE_TEXT - Static variable in class okhttp3.internal.ws.WebSocketProtocol
 
open(URL) - Method in class okhttp3.OkUrlFactory
Deprecated.
 
open(URL, Proxy) - Method in class okhttp3.OkUrlFactory
Deprecated.
 
openResponseBody(Response) - Method in interface okhttp3.internal.http.HttpCodec
Returns a stream that reads the response body.
openResponseBody(Response) - Method in class okhttp3.internal.http1.Http1Codec
 
openResponseBody(Response) - Method in class okhttp3.internal.http2.Http2Codec
 
openSinks - Variable in class okhttp3.internal.io.InMemoryFileSystem
 
openSources - Variable in class okhttp3.internal.io.InMemoryFileSystem
 
openStreamCount() - Method in class okhttp3.internal.http2.Http2Connection
Returns the number of open streams on this connection.
OptionalMethod<T> - Class in okhttp3.internal.platform
Duck-typing for methods: Represents a method that may or may not be present on an object.
OptionalMethod(Class<?>, String, Class...) - Constructor for class okhttp3.internal.platform.OptionalMethod
Creates an optional method.
ORDER_BY_NAME - Static variable in class okhttp3.CipherSuite
Compares cipher suites names like "TLS_RSA_WITH_NULL_MD5" and "SSL_RSA_WITH_NULL_MD5", ignoring the "TLS_" or "SSL_" prefix which is not consistent across platforms.
originalRequest - Variable in class okhttp3.internal.ws.RealWebSocket
The application's original request unadulterated by web socket headers.
originalRequest - Variable in class okhttp3.RealCall
The application's original request unadulterated by redirects or auth headers.
originalType - Variable in class okhttp3.MultipartBody
 
out - Variable in class okhttp3.internal.http2.Hpack.Writer
 
outputStream - Variable in class okhttp3.internal.huc.OutputStreamRequestBody
 
outputStream() - Method in class okhttp3.internal.huc.OutputStreamRequestBody
 
OutputStreamRequestBody - Class in okhttp3.internal.huc
A request body that's populated by blocking writes to an output stream.
OutputStreamRequestBody() - Constructor for class okhttp3.internal.huc.OutputStreamRequestBody
 

P

padding - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
PARALLEL - Static variable in class okhttp3.MultipartBody
This type is syntactically identical to "multipart/mixed", but the semantics are different.
PARAMETER - Static variable in class okhttp3.internal.http.HttpHeaders
 
PARAMETER - Static variable in class okhttp3.MediaType
 
params - Variable in class okhttp3.apache.OkApacheClient
Deprecated.
 
parse(Headers) - Static method in class okhttp3.CacheControl
Returns the cache directives of headers.
parse(HttpUrl, String) - Static method in class okhttp3.Cookie
Attempt to parse a Set-Cookie HTTP header value setCookie as a cookie.
parse(long, HttpUrl, String) - Static method in class okhttp3.Cookie
 
parse(HttpUrl, String) - Method in class okhttp3.HttpUrl.Builder
 
parse(String) - Static method in class okhttp3.HttpUrl
Returns a new HttpUrl representing url if it is a well-formed HTTP or HTTPS URL, or null if it isn't.
parse(String) - Static method in class okhttp3.internal.http.HttpDate
Returns the date for value.
parse(String) - Static method in class okhttp3.internal.http.StatusLine
 
parse(String) - Static method in class okhttp3.MediaType
Returns a media type for string, or null if string is not a well-formed media type.
parseAll(HttpUrl, Headers) - Static method in class okhttp3.Cookie
Returns all of the cookies from a set of HTTP response headers.
parseChallenges(Headers, String) - Static method in class okhttp3.internal.http.HttpHeaders
Parse RFC 7617 challenges, also wrong ordered ones.
parseDomain(String) - Static method in class okhttp3.Cookie
Returns a domain string like example.com for an input domain like EXAMPLE.COM or .example.com.
parseExpires(String, int, int) - Static method in class okhttp3.Cookie
Parse a date as specified in RFC 6265, section 5.1.1.
parseMaxAge(String) - Static method in class okhttp3.Cookie
Returns the positive value if attributeValue is positive, or Long.MIN_VALUE if it is either 0 or negative.
parsePort(String, int, int) - Static method in class okhttp3.HttpUrl.Builder
 
ParseResult() - Constructor for enum okhttp3.HttpUrl.Builder.ParseResult
 
parseSeconds(String, int) - Static method in class okhttp3.internal.http.HttpHeaders
Returns value as a positive integer, or 0 if it is negative, or defaultValue if it cannot be parsed.
part(int) - Method in class okhttp3.MultipartBody
 
Part(Headers, RequestBody) - Constructor for class okhttp3.MultipartBody.Part
 
parts - Variable in class okhttp3.MultipartBody.Builder
 
parts - Variable in class okhttp3.MultipartBody
 
parts() - Method in class okhttp3.MultipartBody
 
password(String) - Method in class okhttp3.HttpUrl.Builder
 
password - Variable in class okhttp3.HttpUrl
Decoded password.
password() - Method in class okhttp3.HttpUrl
Returns the decoded password, or an empty string if none is present.
PASSWORD_ENCODE_SET - Static variable in class okhttp3.HttpUrl
 
patch(RequestBody) - Method in class okhttp3.Request.Builder
 
path - Variable in class okhttp3.Cookie.Builder
 
path(String) - Method in class okhttp3.Cookie.Builder
 
path - Variable in class okhttp3.Cookie
 
path() - Method in class okhttp3.Cookie
Returns this cookie's path.
PATH_SEGMENT_ENCODE_SET - Static variable in class okhttp3.HttpUrl
 
PATH_SEGMENT_ENCODE_SET_URI - Static variable in class okhttp3.HttpUrl
 
pathMatch(HttpUrl, String) - Static method in class okhttp3.Cookie
 
pathSegments - Variable in class okhttp3.HttpUrl
A list of canonical path segments.
pathSegments() - Method in class okhttp3.HttpUrl
Returns a list of path segments like ["a", "b", "c"] for the URL http://host/a/b/c.
pathSegmentsToString(StringBuilder, List<String>) - Static method in class okhttp3.HttpUrl
 
pathSize() - Method in class okhttp3.HttpUrl
Returns the number of segments in this URL's path.
pattern - Variable in class okhttp3.CertificatePinner.Pin
A hostname like example.com or a pattern like *.example.com.
payload1 - Variable in class okhttp3.internal.http2.Http2Connection.PingRunnable
 
payload2 - Variable in class okhttp3.internal.http2.Http2Connection.PingRunnable
 
PAYLOAD_BYTE_MAX - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Maximum length of frame payload.
PAYLOAD_LONG - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Value for WebSocketProtocol.B1_MASK_LENGTH which indicates the next eight bytes are the unsigned length.
PAYLOAD_SHORT - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Value for WebSocketProtocol.B1_MASK_LENGTH which indicates the next two bytes are the unsigned length.
PAYLOAD_SHORT_MAX - Static variable in class okhttp3.internal.ws.WebSocketProtocol
Maximum length of a frame payload to be denoted as WebSocketProtocol.PAYLOAD_SHORT.
peekBody(long) - Method in class okhttp3.Response
Peeks up to byteCount bytes from the response body and returns them as a new response body.
peerCertificates - Variable in class okhttp3.Handshake
 
peerCertificates() - Method in class okhttp3.Handshake
Returns a possibly-empty list of certificates that identify the remote peer.
peerPrincipal() - Method in class okhttp3.Handshake
Returns the remote peer's principle, or null if that peer is anonymous.
peerSettings - Variable in class okhttp3.internal.http2.Http2Connection
Settings we receive from the peer.
percentDecode(String, boolean) - Static method in class okhttp3.HttpUrl
 
percentDecode(List<String>, boolean) - Method in class okhttp3.HttpUrl
 
percentDecode(String, int, int, boolean) - Static method in class okhttp3.HttpUrl
 
percentDecode(Buffer, String, int, int, boolean) - Static method in class okhttp3.HttpUrl
 
percentEncoded(String, int, int) - Static method in class okhttp3.HttpUrl
 
permitsRequestBody(String) - Static method in class okhttp3.internal.http.HttpMethod
 
persistent - Variable in class okhttp3.Cookie.Builder
 
persistent - Variable in class okhttp3.Cookie
 
persistent() - Method in class okhttp3.Cookie
Returns true if this cookie does not expire at the end of the current session.
pin(Certificate) - Static method in class okhttp3.CertificatePinner
Returns the SHA-256 of certificate's public key.
Pin(String, String) - Constructor for class okhttp3.CertificatePinner.Pin
 
ping(boolean, int, int) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
ping(boolean, int, int) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
Read a connection-level ping from the peer.
ping(boolean, int, int) - Method in class okhttp3.internal.http2.Http2Writer
Send a connection-level ping to the peer.
pingInterval - Variable in class okhttp3.OkHttpClient.Builder
 
pingInterval(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
Sets the interval between HTTP/2 and web socket pings initiated by this client.
pingInterval - Variable in class okhttp3.OkHttpClient
 
pingIntervalMillis - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
pingIntervalMillis(int) - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
pingIntervalMillis - Variable in class okhttp3.internal.ws.RealWebSocket
 
pingIntervalMillis() - Method in class okhttp3.OkHttpClient
Web socket ping interval (in milliseconds).
PingRunnable(boolean, int, int) - Constructor for class okhttp3.internal.http2.Http2Connection.PingRunnable
 
PingRunnable() - Constructor for class okhttp3.internal.ws.RealWebSocket.PingRunnable
 
pins - Variable in class okhttp3.CertificatePinner.Builder
 
pins - Variable in class okhttp3.CertificatePinner
 
pipe - Variable in class okhttp3.internal.huc.StreamedRequestBody
 
Platform - Class in okhttp3.internal.platform
Access to platform-specific features.
Platform() - Constructor for class okhttp3.internal.platform.Platform
 
PLATFORM - Static variable in class okhttp3.internal.platform.Platform
 
pong(ByteString) - Method in class okhttp3.internal.ws.RealWebSocket
 
pongQueue - Variable in class okhttp3.internal.ws.RealWebSocket
Outgoing pongs in the order they should be written.
pop() - Method in class okhttp3.HttpUrl.Builder
Removes a path segment.
port - Variable in class okhttp3.HttpUrl.Builder
 
port(int) - Method in class okhttp3.HttpUrl.Builder
 
port - Variable in class okhttp3.HttpUrl
Either 80, 443 or a user-specified port.
port() - Method in class okhttp3.HttpUrl
Returns the explicitly-specified port if one was provided, or the default port for this URL's scheme.
portColonOffset(String, int, int) - Static method in class okhttp3.HttpUrl.Builder
Finds the first ':' in input, skipping characters between square braces "[...]".
pos - Variable in class okhttp3.internal.tls.DistinguishedNameParser
 
post(RequestBody) - Method in class okhttp3.Request.Builder
 
postponedRoutes - Variable in class okhttp3.internal.connection.RouteSelector
 
PREFIX_4_BITS - Static variable in class okhttp3.internal.http2.Hpack
 
PREFIX_5_BITS - Static variable in class okhttp3.internal.http2.Hpack
 
PREFIX_6_BITS - Static variable in class okhttp3.internal.http2.Hpack
 
PREFIX_7_BITS - Static variable in class okhttp3.internal.http2.Hpack
 
PREFIX_CLEAN - Static variable in class okhttp3.internal.cache2.Relay
 
PREFIX_DIRTY - Static variable in class okhttp3.internal.cache2.Relay
 
prepareToSendRequest(Request) - Method in class okhttp3.internal.huc.BufferedRequestBody
Now that we've buffered the entire request body, update the request headers and the body itself.
prepareToSendRequest(Request) - Method in class okhttp3.internal.huc.OutputStreamRequestBody
 
PREVAILING_RULE - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
priority(int, int, int, boolean) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
priority(int, int, int, boolean) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
Called when reading a headers or priority frame.
priorResponse - Variable in class okhttp3.Response.Builder
 
priorResponse(Response) - Method in class okhttp3.Response.Builder
 
priorResponse - Variable in class okhttp3.Response
 
priorResponse() - Method in class okhttp3.Response
Returns the response for the HTTP redirect or authorization challenge that triggered this response, or null if this response wasn't triggered by an automatic retry.
proceed(Request) - Method in interface okhttp3.Interceptor.Chain
 
proceed(Request) - Method in class okhttp3.internal.http.RealInterceptorChain
 
proceed(Request, StreamAllocation, HttpCodec, RealConnection) - Method in class okhttp3.internal.http.RealInterceptorChain
 
proceed - Variable in class okhttp3.internal.huc.OkHttpURLConnection.NetworkInterceptor
 
proceed() - Method in class okhttp3.internal.huc.OkHttpURLConnection.NetworkInterceptor
 
processJournal() - Method in class okhttp3.internal.cache.DiskLruCache
Computes the initial size and collects garbage as a part of opening the cache.
processNextFrame() - Method in class okhttp3.internal.ws.RealWebSocket
For testing: receive a single frame and return true if there are more frames to read.
processNextFrame() - Method in class okhttp3.internal.ws.WebSocketReader
Process the next protocol frame.
promoteCalls() - Method in class okhttp3.Dispatcher
 
propagate(Throwable) - Static method in class okhttp3.internal.huc.OkHttpURLConnection
Throws throwable as either an IOException, RuntimeException, or Error.
protocol - Variable in class okhttp3.Cache.Entry
 
protocol() - Method in interface okhttp3.Connection
Returns the protocol negotiated by this connection, or Protocol.HTTP_1_1 if no protocol has been negotiated.
protocol - Variable in class okhttp3.internal.connection.RealConnection
 
protocol() - Method in class okhttp3.internal.connection.RealConnection
 
protocol - Variable in class okhttp3.internal.http.StatusLine
 
Protocol - Enum in okhttp3
Protocols that OkHttp implements for ALPN selection.
Protocol(String) - Constructor for enum okhttp3.Protocol
 
protocol - Variable in enum okhttp3.Protocol
 
protocol - Variable in class okhttp3.Response.Builder
 
protocol(Protocol) - Method in class okhttp3.Response.Builder
 
protocol - Variable in class okhttp3.Response
 
protocol() - Method in class okhttp3.Response
Returns the HTTP protocol, such as Protocol.HTTP_1_1 or Protocol.HTTP_1_0.
protocols - Variable in class okhttp3.Address
 
protocols() - Method in class okhttp3.Address
Returns the protocols the client supports.
protocols - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform.JettyNegoProvider
This peer's supported protocols.
protocols - Variable in class okhttp3.OkHttpClient.Builder
 
protocols(List<Protocol>) - Method in class okhttp3.OkHttpClient.Builder
Configure the protocols used by this client to communicate with remote servers.
protocols - Variable in class okhttp3.OkHttpClient
 
protocols() - Method in class okhttp3.OkHttpClient
 
proxies - Variable in class okhttp3.FakeProxySelector
 
proxies - Variable in class okhttp3.internal.connection.RouteSelector
 
proxy - Variable in class okhttp3.Address
 
proxy() - Method in class okhttp3.Address
Returns this address's explicitly-specified HTTP proxy, or null to delegate to the proxy selector.
proxy - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
proxy - Variable in class okhttp3.OkHttpClient.Builder
 
proxy(Proxy) - Method in class okhttp3.OkHttpClient.Builder
Sets the HTTP proxy that will be used by connections created by this client.
proxy - Variable in class okhttp3.OkHttpClient
 
proxy() - Method in class okhttp3.OkHttpClient
 
proxy - Variable in class okhttp3.Route
 
proxy() - Method in class okhttp3.Route
Returns the Proxy of this route.
PROXY_CONNECTION - Static variable in class okhttp3.internal.http2.Http2Codec
 
proxyAuthenticator - Variable in class okhttp3.Address
 
proxyAuthenticator() - Method in class okhttp3.Address
Returns the client's proxy authenticator.
proxyAuthenticator - Variable in class okhttp3.OkHttpClient.Builder
 
proxyAuthenticator(Authenticator) - Method in class okhttp3.OkHttpClient.Builder
Sets the authenticator used to respond to challenges from proxy servers.
proxyAuthenticator - Variable in class okhttp3.OkHttpClient
 
proxyAuthenticator() - Method in class okhttp3.OkHttpClient
 
proxySelector - Variable in class okhttp3.Address
 
proxySelector() - Method in class okhttp3.Address
Returns this address's proxy selector.
proxySelector - Variable in class okhttp3.OkHttpClient.Builder
 
proxySelector(ProxySelector) - Method in class okhttp3.OkHttpClient.Builder
Sets the proxy selection policy to be used if no proxy is specified explicitly.
proxySelector - Variable in class okhttp3.OkHttpClient
 
proxySelector() - Method in class okhttp3.OkHttpClient
 
pruneAndGetAllocationCount(RealConnection, long) - Method in class okhttp3.ConnectionPool
Prunes any leaked allocations and then returns the number of remaining live allocations on connection.
PSEUDO_PREFIX - Static variable in class okhttp3.internal.http2.Header
 
PUBLIC_SUFFIX_RESOURCE - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
PublicSuffixDatabase - Class in okhttp3.internal.publicsuffix
A database of public suffixes provided by publicsuffix.org.
PublicSuffixDatabase() - Constructor for class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
publicSuffixExceptionListBytes - Variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
publicSuffixListBytes - Variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
push(String, int, int, boolean, boolean) - Method in class okhttp3.HttpUrl.Builder
Adds a path segment.
pushDataLater(int, BufferedSource, int, boolean) - Method in class okhttp3.internal.http2.Http2Connection
Eagerly reads byteCount bytes from the source before launching a background task to process the data.
pushedStream(int) - Method in class okhttp3.internal.http2.Http2Connection
Even, positive numbered streams are pushed streams in HTTP/2.
pushExecutor - Variable in class okhttp3.internal.http2.Http2Connection
Ensures push promise callbacks events are sent in order per stream.
pushHeadersLater(int, List<Header>, boolean) - Method in class okhttp3.internal.http2.Http2Connection
 
pushObserver - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
pushObserver(PushObserver) - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
pushObserver - Variable in class okhttp3.internal.http2.Http2Connection
User code to run in response to push promise events.
PushObserver - Interface in okhttp3.internal.http2
HTTP/2 only.
pushPromise(int, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
pushPromise(int, int, List<Header>) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
HTTP/2 only.
pushPromise(int, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Writer
HTTP/2 only.
pushRequestLater(int, List<Header>) - Method in class okhttp3.internal.http2.Http2Connection
 
pushResetLater(int, ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection
 
pushStream(int, List<Header>, boolean) - Method in class okhttp3.internal.http2.Http2Connection
Returns a new server-initiated stream.
put(Response) - Method in class okhttp3.Cache
 
put(RealConnection) - Method in class okhttp3.ConnectionPool
 
put(Response) - Method in interface okhttp3.internal.cache.InternalCache
 
put(ConnectionPool, RealConnection) - Method in class okhttp3.internal.Internal
 
put(RequestBody) - Method in class okhttp3.Request.Builder
 
putMethod - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform
 
putValue(String, Object) - Method in class okhttp3.FakeSSLSession
 

Q

query(String) - Method in class okhttp3.HttpUrl.Builder
 
query() - Method in class okhttp3.HttpUrl
Returns this URL's query, like "abc" for http://host/?abc.
QUERY_COMPONENT_ENCODE_SET - Static variable in class okhttp3.HttpUrl
 
QUERY_COMPONENT_ENCODE_SET_URI - Static variable in class okhttp3.HttpUrl
 
QUERY_COMPONENT_REENCODE_SET - Static variable in class okhttp3.HttpUrl
 
QUERY_ENCODE_SET - Static variable in class okhttp3.HttpUrl
 
queryNamesAndValues - Variable in class okhttp3.HttpUrl
Alternating, decoded query names and values, or null for no query.
queryParameter(String) - Method in class okhttp3.HttpUrl
Returns the first query parameter named name decoded using UTF-8, or null if there is no such query parameter.
queryParameterName(int) - Method in class okhttp3.HttpUrl
Returns the name of the query parameter at index.
queryParameterNames() - Method in class okhttp3.HttpUrl
Returns the distinct query parameter names in this URL, like ["a", "b"] for http://host/?a=apple&b=banana.
queryParameterValue(int) - Method in class okhttp3.HttpUrl
Returns the value of the query parameter at index.
queryParameterValues(String) - Method in class okhttp3.HttpUrl
Returns all values for the query parameter name ordered by their appearance in this URL.
querySize() - Method in class okhttp3.HttpUrl
Returns the number of query parameters in this URL, like 2 for http://host/?a=apple&b=banana.
queryStringToNamesAndValues(String) - Static method in class okhttp3.HttpUrl
Cuts encodedQuery up into alternating parameter names and values.
queuedCalls() - Method in class okhttp3.Dispatcher
Returns a snapshot of the calls currently awaiting execution.
queuedCallsCount() - Method in class okhttp3.Dispatcher
 
queueSize - Variable in class okhttp3.internal.ws.RealWebSocket
The total size in bytes of enqueued but not yet transmitted messages.
queueSize() - Method in class okhttp3.internal.ws.RealWebSocket
 
queueSize() - Method in interface okhttp3.WebSocket
Returns the size in bytes of all messages enqueued to be transmitted to the server.
QUOTED - Static variable in class okhttp3.MediaType
 
QUOTED_STRING - Static variable in class okhttp3.internal.http.HttpHeaders
 
quotedAV() - Method in class okhttp3.internal.tls.DistinguishedNameParser
 

R

random - Variable in class okhttp3.internal.ws.RealWebSocket
 
random - Variable in class okhttp3.internal.ws.WebSocketWriter
 
rawSocket - Variable in class okhttp3.internal.connection.RealConnection
The low-level TCP socket.
READ - Static variable in class okhttp3.internal.cache.DiskLruCache
 
read(long, Buffer, long) - Method in class okhttp3.internal.cache2.FileOperator
Copy byteCount bytes from the file at pos into to source.
read(File) - Static method in class okhttp3.internal.cache2.Relay
Creates a relay that reads a recorded stream from file.
read(Buffer, long) - Method in class okhttp3.internal.cache2.Relay.RelaySource
Selects where to find the bytes for a read and read them.
read(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.AbstractSource
 
read(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSource
 
read(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSource
 
read(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.UnknownLengthSource
 
read(Buffer, long) - Method in class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
 
read(Buffer, long) - Method in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
read(Buffer, long) - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
 
read(char[], int, int) - Method in class okhttp3.ResponseBody.BomAwareReader
 
readable - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
True if this entry has ever been published.
readBuffer - Variable in class okhttp3.internal.http2.Http2Stream.FramingSource
Buffer with readable data.
readByte() - Method in class okhttp3.internal.http2.Hpack.Reader
 
readByteString() - Method in class okhttp3.internal.http2.Hpack.Reader
Reads a potentially Huffman encoded byte string.
readCertificateList(BufferedSource) - Method in class okhttp3.Cache.Entry
 
readChunkSize() - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSource
 
readCompleteLatch - Variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
Used for concurrent threads reading the list for the first time.
readConnectionPreface(Http2Reader.Handler) - Method in class okhttp3.internal.http2.Http2Reader
 
readContinuationHeader() - Method in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
readControlFrame() - Method in class okhttp3.internal.ws.WebSocketReader
 
readData(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
Reader(int, Source) - Constructor for class okhttp3.internal.http2.Hpack.Reader
 
Reader(int, int, Source) - Constructor for class okhttp3.internal.http2.Hpack.Reader
 
reader - Variable in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
reader - Variable in class okhttp3.internal.ws.RealWebSocket
Null until this web socket is connected.
reader - Variable in class okhttp3.ResponseBody
Multiple calls to ResponseBody.charStream() must return the same instance.
readerRunnable - Variable in class okhttp3.internal.http2.Http2Connection
 
ReaderRunnable(Http2Reader) - Constructor for class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
readFieldOrNull(Object, Class<T>, String) - Static method in class okhttp3.internal.platform.Platform
 
readGoAway(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readHeader() - Method in class okhttp3.internal.ws.WebSocketReader
 
readHeaderBlock(int, short, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readHeaderLine() - Method in class okhttp3.internal.http1.Http1Codec
 
readHeaders() - Method in class okhttp3.internal.http1.Http1Codec
Reads headers or trailers.
readHeaders() - Method in class okhttp3.internal.http2.Hpack.Reader
Read byteCount bytes of headers from the source stream.
readHeaders(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readHttp2HeadersList(List<Header>) - Static method in class okhttp3.internal.http2.Http2Codec
Returns headers for a name value block containing an HTTP/2 response.
readIndexedHeader(int) - Method in class okhttp3.internal.http2.Hpack.Reader
 
readInt(BufferedSource) - Static method in class okhttp3.Cache
 
readInt(int, int) - Method in class okhttp3.internal.http2.Hpack.Reader
 
readJournal() - Method in class okhttp3.internal.cache.DiskLruCache
 
readJournalLine(String) - Method in class okhttp3.internal.cache.DiskLruCache
 
readLiteralHeaderWithIncrementalIndexingIndexedName(int) - Method in class okhttp3.internal.http2.Hpack.Reader
 
readLiteralHeaderWithIncrementalIndexingNewName() - Method in class okhttp3.internal.http2.Hpack.Reader
 
readLiteralHeaderWithoutIndexingIndexedName(int) - Method in class okhttp3.internal.http2.Hpack.Reader
 
readLiteralHeaderWithoutIndexingNewName() - Method in class okhttp3.internal.http2.Hpack.Reader
 
readMedium(BufferedSource) - Static method in class okhttp3.internal.http2.Http2Reader
 
readMessage() - Method in class okhttp3.internal.ws.WebSocketReader
Reads a message body into across one or more frames.
readMessageFrame() - Method in class okhttp3.internal.ws.WebSocketReader
 
readPing(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readPriority(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readPriority(Http2Reader.Handler, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readPushPromise(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readResponseHeaders(boolean) - Method in interface okhttp3.internal.http.HttpCodec
Parses bytes of a response header from an HTTP transport.
readResponseHeaders(boolean) - Method in class okhttp3.internal.http1.Http1Codec
 
readResponseHeaders(boolean) - Method in class okhttp3.internal.http2.Http2Codec
 
readRstStream(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readSettings(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readTheList() - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
readTheListUninterruptibly() - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
Reads the public suffix list treating the operation as uninterruptible.
readTimeout - Variable in class okhttp3.internal.http.RealInterceptorChain
 
readTimeout - Variable in class okhttp3.internal.http2.Http2Stream
 
readTimeout() - Method in class okhttp3.internal.http2.Http2Stream
 
readTimeout - Variable in class okhttp3.OkHttpClient.Builder
 
readTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
Sets the default read timeout for new connections.
readTimeout - Variable in class okhttp3.OkHttpClient
 
readTimeoutMillis() - Method in interface okhttp3.Interceptor.Chain
 
readTimeoutMillis() - Method in class okhttp3.internal.http.RealInterceptorChain
 
readTimeoutMillis() - Method in class okhttp3.OkHttpClient
Default read timeout (in milliseconds).
readUntilNonControlFrame() - Method in class okhttp3.internal.ws.WebSocketReader
Read headers and process any control frames until we reach a non-control frame.
readWindowUpdate(Http2Reader.Handler, int, byte, int) - Method in class okhttp3.internal.http2.Http2Reader
 
readyAsyncCalls - Variable in class okhttp3.Dispatcher
Ready async calls in the order they'll be run.
RealCall - Class in okhttp3
 
RealCall(OkHttpClient, Request, boolean) - Constructor for class okhttp3.RealCall
 
RealCall.AsyncCall - Class in okhttp3
 
RealConnection - Class in okhttp3.internal.connection
 
RealConnection(ConnectionPool, Route) - Constructor for class okhttp3.internal.connection.RealConnection
 
RealInterceptorChain - Class in okhttp3.internal.http
A concrete interceptor chain that carries the entire interceptor chain: all application interceptors, the OkHttp core, all network interceptors, and finally the network caller.
RealInterceptorChain(List<Interceptor>, StreamAllocation, HttpCodec, RealConnection, int, Request, Call, EventListener, int, int, int) - Constructor for class okhttp3.internal.http.RealInterceptorChain
 
realm - Variable in class okhttp3.Challenge
 
realm() - Method in class okhttp3.Challenge
Returns the protection space.
RealResponseBody - Class in okhttp3.internal.http
 
RealResponseBody(String, long, BufferedSource) - Constructor for class okhttp3.internal.http.RealResponseBody
 
RealWebSocket - Class in okhttp3.internal.ws
 
RealWebSocket(Request, WebSocketListener, Random, long) - Constructor for class okhttp3.internal.ws.RealWebSocket
 
RealWebSocket.CancelRunnable - Class in okhttp3.internal.ws
 
RealWebSocket.Close - Class in okhttp3.internal.ws
 
RealWebSocket.Message - Class in okhttp3.internal.ws
 
RealWebSocket.PingRunnable - Class in okhttp3.internal.ws
 
RealWebSocket.Streams - Class in okhttp3.internal.ws
 
reason - Variable in class okhttp3.internal.ws.RealWebSocket.Close
 
rebuildJournal() - Method in class okhttp3.internal.cache.DiskLruCache
Creates a new journal that omits redundant information.
receive(BufferedSource, long) - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
 
receiveBuffer - Variable in class okhttp3.internal.http2.Http2Stream.FramingSource
Buffer to receive data from the network into.
RECEIVED_MILLIS - Static variable in class okhttp3.Cache.Entry
Synthetic response header: the local time when the response was received.
receiveData(BufferedSource, int) - Method in class okhttp3.internal.http2.Http2Stream
 
receivedCloseCode - Variable in class okhttp3.internal.ws.RealWebSocket
The close code from the peer, or -1 if this web socket has not yet read a close frame.
receivedCloseReason - Variable in class okhttp3.internal.ws.RealWebSocket
The close reason from the peer, or null if this web socket has not yet read a close frame.
receivedInitialPeerSettings - Variable in class okhttp3.internal.http2.Http2Connection
 
receivedPingCount - Variable in class okhttp3.internal.ws.RealWebSocket
Total number of pings received by this web socket.
receivedPingCount() - Method in class okhttp3.internal.ws.RealWebSocket
 
receivedPongCount - Variable in class okhttp3.internal.ws.RealWebSocket
Total number of pongs received by this web socket.
receivedPongCount() - Method in class okhttp3.internal.ws.RealWebSocket
 
receivedResponseAtMillis - Variable in class okhttp3.Response.Builder
 
receivedResponseAtMillis(long) - Method in class okhttp3.Response.Builder
 
receivedResponseAtMillis - Variable in class okhttp3.Response
 
receivedResponseAtMillis() - Method in class okhttp3.Response
Returns a timestamp taken immediately after OkHttp received this response's headers from the network.
receivedResponseMillis - Variable in class okhttp3.Cache.Entry
 
receivedResponseMillis - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
Extension header set by OkHttp specifying the timestamp when the cached HTTP response was first received.
receiveFin() - Method in class okhttp3.internal.http2.Http2Stream
 
receiveHeaders(CookieJar, HttpUrl, Headers) - Static method in class okhttp3.internal.http.HttpHeaders
 
receiveHeaders(List<Header>) - Method in class okhttp3.internal.http2.Http2Stream
 
receiveRstStream(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
 
RecordingCookieJar - Class in okhttp3
 
RecordingCookieJar() - Constructor for class okhttp3.RecordingCookieJar
 
RecordingHostnameVerifier - Class in okhttp3
 
RecordingHostnameVerifier() - Constructor for class okhttp3.RecordingHostnameVerifier
 
recover(IOException, StreamAllocation, boolean, Request) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
Report and attempt to recover from a failure to communicate with a server.
redact() - Method in class okhttp3.HttpUrl
Returns a string with containing this URL with its username, password, query, and fragment stripped, and its path replaced with /....
redactedUrl() - Method in class okhttp3.RealCall
 
redirectsToGet(String) - Static method in class okhttp3.internal.http.HttpMethod
 
redirectsWithBody(String) - Static method in class okhttp3.internal.http.HttpMethod
 
redundantOpCount - Variable in class okhttp3.internal.cache.DiskLruCache
 
reencodeForUri() - Method in class okhttp3.HttpUrl.Builder
Re-encodes the components of this URL so that it satisfies (obsolete) RFC 2396, which is particularly strict for certain components.
REFUSE_INCOMING_STREAMS - Static variable in class okhttp3.internal.http2.Http2Connection.Listener
 
refusedStreamCount - Variable in class okhttp3.internal.connection.StreamAllocation
 
Relay - Class in okhttp3.internal.cache2
Replicates a single upstream source into multiple downstream sources.
Relay(RandomAccessFile, Source, long, ByteString, long) - Constructor for class okhttp3.internal.cache2.Relay
 
Relay.RelaySource - Class in okhttp3.internal.cache2
 
RelaySource() - Constructor for class okhttp3.internal.cache2.Relay.RelaySource
 
release() - Method in class okhttp3.internal.connection.StreamAllocation
 
release(RealConnection) - Method in class okhttp3.internal.connection.StreamAllocation
Remove this allocation from the connection's list of allocations.
releaseAndAcquire(RealConnection) - Method in class okhttp3.internal.connection.StreamAllocation
Release the connection held by this connection and acquire newConnection instead.
released - Variable in class okhttp3.internal.connection.StreamAllocation
 
releaseIfNoNewStreams() - Method in class okhttp3.internal.connection.StreamAllocation
Releases the currently held connection and returns a socket to close if the held connection restricts new streams from being created.
remove(Request) - Method in class okhttp3.Cache
 
REMOVE - Static variable in class okhttp3.internal.cache.DiskLruCache
 
remove(String) - Method in class okhttp3.internal.cache.DiskLruCache
Drops the entry for key if it exists and can be removed.
remove(Request) - Method in interface okhttp3.internal.cache.InternalCache
Remove any cache entries for the supplied request.
removeAll(String) - Method in class okhttp3.Headers.Builder
 
removeAllCanonicalQueryParameters(String) - Method in class okhttp3.HttpUrl.Builder
 
removeAllEncodedQueryParameters(String) - Method in class okhttp3.HttpUrl.Builder
 
removeAllQueryParameters(String) - Method in class okhttp3.HttpUrl.Builder
 
removeEntry(DiskLruCache.Entry) - Method in class okhttp3.internal.cache.DiskLruCache
 
removeHeader(String) - Method in class okhttp3.Request.Builder
Removes all headers named name on this builder.
removeHeader(String) - Method in class okhttp3.Response.Builder
 
removeMethod - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform
 
removePathSegment(int) - Method in class okhttp3.HttpUrl.Builder
 
removeStream(int) - Method in class okhttp3.internal.http2.Http2Connection
 
removeValue(String) - Method in class okhttp3.FakeSSLSession
 
rename(File, File) - Method in interface okhttp3.internal.io.FileSystem
Renames from to to.
rename(File, File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
reply - Variable in class okhttp3.internal.http2.Http2Connection.PingRunnable
 
reportedAcquired - Variable in class okhttp3.internal.connection.StreamAllocation
 
request() - Method in interface okhttp3.Call
Returns the original request that initiated this call.
request() - Method in interface okhttp3.Interceptor.Chain
 
request - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
 
request - Variable in class okhttp3.internal.http.RealInterceptorChain
 
request() - Method in class okhttp3.internal.http.RealInterceptorChain
 
request() - Method in class okhttp3.internal.ws.RealWebSocket
 
request() - Method in class okhttp3.RealCall.AsyncCall
 
request() - Method in class okhttp3.RealCall
 
Request - Class in okhttp3
An HTTP request.
Request(Request.Builder) - Constructor for class okhttp3.Request
 
request - Variable in class okhttp3.Response.Builder
 
request(Request) - Method in class okhttp3.Response.Builder
 
request - Variable in class okhttp3.Response
 
request() - Method in class okhttp3.Response
The wire-level request that initiated this HTTP response.
request() - Method in interface okhttp3.WebSocket
Returns the original request that initiated this web socket.
Request.Builder - Class in okhttp3
 
RequestBody - Class in okhttp3
 
RequestBody() - Constructor for class okhttp3.RequestBody
 
requestBodyEnd(Call, long) - Method in class okhttp3.EventListener
Invoked immediately after sending a request body.
requestBodyStart(Call) - Method in class okhttp3.EventListener
Invoked just prior to sending a request body.
requestCookies - Variable in class okhttp3.RecordingCookieJar
 
requestCount - Variable in class okhttp3.Cache
 
requestCount() - Method in class okhttp3.Cache
 
requestedHosts - Variable in class okhttp3.FakeDns
 
requestHeaders - Variable in class okhttp3.internal.http2.Http2Stream
Request headers.
requestHeaders - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
requestHeadersEnd(Call, Request) - Method in class okhttp3.EventListener
Invoked immediately after sending request headers.
requestHeadersStart(Call) - Method in class okhttp3.EventListener
Invoked just prior to sending request headers.
RequestLine - Class in okhttp3.internal.http
 
RequestLine() - Constructor for class okhttp3.internal.http.RequestLine
 
requestMethod - Variable in class okhttp3.Cache.Entry
 
requestPath(HttpUrl) - Static method in class okhttp3.internal.http.RequestLine
Returns the path to request, like the '/' in 'GET / HTTP/1.1'.
requiresRequestBody(String) - Static method in class okhttp3.internal.http.HttpMethod
 
requiresTunnel() - Method in class okhttp3.Route
Returns true if this route tunnels HTTPS through an HTTP proxy.
resetNextInetSocketAddress(Proxy) - Method in class okhttp3.internal.connection.RouteSelector
Prepares the socket addresses to attempt for the current proxy or host.
resetNextProxy(HttpUrl, Proxy) - Method in class okhttp3.internal.connection.RouteSelector
Prepares the proxy servers to try.
resolve(String) - Method in class okhttp3.HttpUrl
Returns the URL that would be retrieved by following link from this URL, or null if the resulting URL is not well-formed.
resolvePath(String, int, int) - Method in class okhttp3.HttpUrl.Builder
 
response(DiskLruCache.Snapshot) - Method in class okhttp3.Cache.Entry
 
response - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
Response - Class in okhttp3
An HTTP response.
Response(Response.Builder) - Constructor for class okhttp3.Response
 
Response.Builder - Class in okhttp3
 
RESPONSE_SOURCE - Static variable in class okhttp3.internal.huc.OkHttpURLConnection
Synthetic response header: the location from which the response was loaded.
RESPONSE_STATUS - Static variable in class okhttp3.internal.http2.Header
 
ResponseBody - Class in okhttp3
A one-shot stream from the origin server to the client application with the raw bytes of the response body.
ResponseBody() - Constructor for class okhttp3.ResponseBody
 
ResponseBody.BomAwareReader - Class in okhttp3
 
responseBodyEnd(Call, long) - Method in class okhttp3.EventListener
Invoked immediately after receiving a response body and completing reading it.
responseBodyStart(Call) - Method in class okhttp3.EventListener
Invoked just prior to receiving the response body.
responseCallback - Variable in class okhttp3.RealCall.AsyncCall
 
responseCookies - Variable in class okhttp3.RecordingCookieJar
 
responseHeaders - Variable in class okhttp3.Cache.Entry
 
responseHeaders - Variable in class okhttp3.internal.http2.Http2Stream
Response headers yet to be taken.
responseHeaders - Variable in class okhttp3.internal.huc.OkHttpURLConnection
Lazily created (with synthetic headers) on first call to getHeaders().
responseHeadersEnd(Call, Response) - Method in class okhttp3.EventListener
Invoked immediately after receiving response headers.
responseHeadersStart(Call) - Method in class okhttp3.EventListener
Invoked just prior to receiving response headers.
responseSourceHeader(Response) - Static method in class okhttp3.internal.huc.OkHttpURLConnection
 
retryAfter(Response, int) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
RetryAndFollowUpInterceptor - Class in okhttp3.internal.http
This interceptor recovers from failures and follows redirects as necessary.
RetryAndFollowUpInterceptor(OkHttpClient, boolean) - Constructor for class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
retryAndFollowUpInterceptor - Variable in class okhttp3.RealCall
 
retryOnConnectionFailure - Variable in class okhttp3.OkHttpClient.Builder
 
retryOnConnectionFailure(boolean) - Method in class okhttp3.OkHttpClient.Builder
Configure this client to retry or not when a connectivity problem is encountered.
retryOnConnectionFailure - Variable in class okhttp3.OkHttpClient
 
retryOnConnectionFailure() - Method in class okhttp3.OkHttpClient
 
returnType - Variable in class okhttp3.internal.platform.OptionalMethod
The return type of the method.
root - Variable in class okhttp3.internal.http2.Huffman
 
route() - Method in interface okhttp3.Connection
Returns the route used by this connection.
route - Variable in class okhttp3.internal.connection.RealConnection
 
route() - Method in class okhttp3.internal.connection.RealConnection
 
route - Variable in class okhttp3.internal.connection.StreamAllocation
 
route() - Method in class okhttp3.internal.connection.StreamAllocation
 
Route - Class in okhttp3
The concrete route used by a connection to reach an abstract origin server.
Route(Address, Proxy, InetSocketAddress) - Constructor for class okhttp3.Route
 
routeDatabase - Variable in class okhttp3.ConnectionPool
 
RouteDatabase - Class in okhttp3.internal.connection
A blacklist of failed routes to avoid when creating a new connection to a target address.
RouteDatabase() - Constructor for class okhttp3.internal.connection.RouteDatabase
 
routeDatabase - Variable in class okhttp3.internal.connection.RouteSelector
 
routeDatabase() - Method in class okhttp3.internal.connection.StreamAllocation
 
routeDatabase(ConnectionPool) - Method in class okhttp3.internal.Internal
 
RouteException - Exception in okhttp3.internal.connection
An exception thrown to indicate a problem connecting via a single Route.
RouteException(IOException) - Constructor for exception okhttp3.internal.connection.RouteException
 
routes - Variable in class okhttp3.internal.connection.RouteSelector.Selection
 
routeSelection - Variable in class okhttp3.internal.connection.StreamAllocation
 
RouteSelector - Class in okhttp3.internal.connection
Selects routes to connect to an origin server.
RouteSelector(Address, RouteDatabase, Call, EventListener) - Constructor for class okhttp3.internal.connection.RouteSelector
 
routeSelector - Variable in class okhttp3.internal.connection.StreamAllocation
 
RouteSelector.Selection - Class in okhttp3.internal.connection
A set of selected Routes.
rstStream(int, ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
rstStream(int, ErrorCode) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
 
rstStream(int, ErrorCode) - Method in class okhttp3.internal.http2.Http2Writer
 
run() - Method in class okhttp3.internal.NamedRunnable
 
run() - Method in class okhttp3.internal.ws.RealWebSocket.CancelRunnable
 
run() - Method in class okhttp3.internal.ws.RealWebSocket.PingRunnable
 
runningAsyncCalls - Variable in class okhttp3.Dispatcher
Running asynchronous calls.
runningCalls() - Method in class okhttp3.Dispatcher
Returns a snapshot of the calls currently being executed.
runningCallsCount() - Method in class okhttp3.Dispatcher
 
runningCallsForHost(RealCall.AsyncCall) - Method in class okhttp3.Dispatcher
Returns the number of running calls that share a host with call.
runningSyncCalls - Variable in class okhttp3.Dispatcher
Running synchronous calls.
runWriter() - Method in class okhttp3.internal.ws.RealWebSocket
 

S

sameConnection(Response, HttpUrl) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
Returns true if an HTTP request for followUp can reuse the connection used by this engine.
saveFromResponse(HttpUrl, List<Cookie>) - Method in interface okhttp3.CookieJar
Saves cookies from an HTTP response to this store according to this jar's policy.
saveFromResponse(HttpUrl, List<Cookie>) - Method in class okhttp3.JavaNetCookieJar
 
saveFromResponse(HttpUrl, List<Cookie>) - Method in class okhttp3.RecordingCookieJar
 
scheme - Variable in class okhttp3.Challenge
 
scheme() - Method in class okhttp3.Challenge
Returns the authentication scheme, like Basic.
scheme - Variable in class okhttp3.HttpUrl.Builder
 
scheme(String) - Method in class okhttp3.HttpUrl.Builder
 
scheme - Variable in class okhttp3.HttpUrl
Either "http" or "https".
scheme() - Method in class okhttp3.HttpUrl
Returns either "http" or "https".
schemeDelimiterOffset(String, int, int) - Static method in class okhttp3.HttpUrl.Builder
Returns the index of the ':' in input that is after scheme characters.
secure - Variable in class okhttp3.Cookie.Builder
 
secure() - Method in class okhttp3.Cookie.Builder
 
secure - Variable in class okhttp3.Cookie
 
secure() - Method in class okhttp3.Cookie
Returns true if this cookie should be limited to only HTTPS requests.
secureConnectEnd(Call, Handshake) - Method in class okhttp3.EventListener
Invoked immediately after a TLS connection was attempted.
secureConnectStart(Call) - Method in class okhttp3.EventListener
Invoked just prior to initiating a TLS connection.
select(URI) - Method in class okhttp3.FakeProxySelector
 
selected - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform.JettyNegoProvider
The protocol the server selected.
SELECTED_PROTOCOL - Static variable in class okhttp3.internal.huc.OkHttpURLConnection
Synthetic response header: the selected protocol ("spdy/3.1", "http/1.1", etc).
Selection(List<Route>) - Constructor for class okhttp3.internal.connection.RouteSelector.Selection
 
send(String) - Method in class okhttp3.internal.ws.RealWebSocket
 
send(ByteString) - Method in class okhttp3.internal.ws.RealWebSocket
 
send(ByteString, int) - Method in class okhttp3.internal.ws.RealWebSocket
 
send(String) - Method in interface okhttp3.WebSocket
Attempts to enqueue text to be UTF-8 encoded and sent as a the data of a text (type 0x1) message.
send(ByteString) - Method in interface okhttp3.WebSocket
Attempts to enqueue bytes to be sent as a the data of a binary (type 0x2) message.
sendBuffer - Variable in class okhttp3.internal.http2.Http2Stream.FramingSink
Buffer of outgoing data.
sendResponseHeaders(List<Header>, boolean) - Method in class okhttp3.internal.http2.Http2Stream
Sends a reply to an incoming stream.
SENT_MILLIS - Static variable in class okhttp3.Cache.Entry
Synthetic response header: the local time when the request was sent.
sentPingCount - Variable in class okhttp3.internal.ws.RealWebSocket
Total number of pings sent by this web socket.
sentPingCount() - Method in class okhttp3.internal.ws.RealWebSocket
 
sentRequestAtMillis - Variable in class okhttp3.Response.Builder
 
sentRequestAtMillis(long) - Method in class okhttp3.Response.Builder
 
sentRequestAtMillis - Variable in class okhttp3.Response
 
sentRequestAtMillis() - Method in class okhttp3.Response
Returns a timestamp taken immediately before OkHttp transmitted the initiating request over the network.
sentRequestMillis - Variable in class okhttp3.Cache.Entry
 
sentRequestMillis - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
Extension header set by OkHttp specifying the timestamp when the cached HTTP request was first initiated.
sequenceNumber - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
The sequence number of the most recently committed edit to this entry.
sequenceNumber - Variable in class okhttp3.internal.cache.DiskLruCache.Snapshot
 
servedDate - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
The server's time when the cached response was served, if known.
servedDateString - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
 
serverProviderClass - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform
 
set(String, List<InetAddress>) - Method in class okhttp3.FakeDns
Sets the results for hostname.
set(String, String) - Method in class okhttp3.Headers.Builder
Set a field with the specified value.
set - Variable in class okhttp3.internal.http2.Settings
Bitfield of which flags that values.
set(int, int) - Method in class okhttp3.internal.http2.Settings
 
setAllowUserInteraction(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setCache(OkHttpClient.Builder, InternalCache) - Method in class okhttp3.internal.Internal
 
setCallStackTrace(Object) - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
setChunkedStreamingMode(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setClient(OkHttpClient) - Method in class okhttp3.OkUrlFactory
Deprecated.
 
setConnectTimeout(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setConnectTimeout(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setDefaultUseCaches(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setDoInput(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setDoOutput(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setEncodedPathSegment(int, String) - Method in class okhttp3.HttpUrl.Builder
 
setEncodedQueryParameter(String, String) - Method in class okhttp3.HttpUrl.Builder
 
setFixedLengthStreamingMode(long) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setFixedLengthStreamingMode(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setFixedLengthStreamingMode(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setFixedLengthStreamingMode(long) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setHeaderTableSizeSetting(int) - Method in class okhttp3.internal.http2.Hpack.Writer
 
setHostnameVerifier(HostnameVerifier) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setHostnameVerifier(HostnameVerifier) - Method in class okhttp3.internal.huc.OkHttpsURLConnection
 
setIdleCallback(Runnable) - Method in class okhttp3.Dispatcher
Set a callback to be invoked each time the dispatcher becomes idle (when the number of running calls returns to zero).
setIfModifiedSince(long) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setIfModifiedSince(long) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setInstanceFollowRedirects(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setInstanceFollowRedirects(boolean) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setInternalCache(InternalCache) - Method in class okhttp3.OkHttpClient.Builder
Sets the response cache to be used to read and write cached responses.
setLengths(String[]) - Method in class okhttp3.internal.cache.DiskLruCache.Entry
Set lengths using decimal numbers like "10123".
setLevel(HttpLoggingInterceptor.Level) - Method in class okhttp3.logging.HttpLoggingInterceptor
Change the level at which this interceptor logs.
setListBytes(byte[], byte[]) - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
Visible for testing.
setMaxRequests(int) - Method in class okhttp3.Dispatcher
Set the maximum number of requests to execute concurrently.
setMaxRequestsPerHost(int) - Method in class okhttp3.Dispatcher
Set the maximum number of requests for each host to execute concurrently.
setMaxSize(long) - Method in class okhttp3.internal.cache.DiskLruCache
Changes the maximum number of bytes the cache can store and queues a job to trim the existing store, if necessary.
setPathSegment(int, String) - Method in class okhttp3.HttpUrl.Builder
 
setProtocolMethod - Variable in class okhttp3.internal.platform.Jdk9Platform
 
setQueryParameter(String, String) - Method in class okhttp3.HttpUrl.Builder
 
setReadTimeout(int) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setReadTimeout(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setRequestMethod(String) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setRequestMethod(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setRequestProperty(String, String) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setRequestProperty(String, String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
 
setSettings(Settings) - Method in class okhttp3.internal.http2.Http2Connection
Merges settings into this peer's settings and sends them to the remote peer.
setSSLSocketFactory(SSLSocketFactory) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
setSSLSocketFactory(SSLSocketFactory) - Method in class okhttp3.internal.huc.OkHttpsURLConnection
 
settings(boolean, Settings) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
settings(boolean, Settings) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
 
settings(Settings) - Method in class okhttp3.internal.http2.Http2Writer
Write okhttp's settings to the peer.
Settings - Class in okhttp3.internal.http2
Settings describe characteristics of the sending peer, which are used by the receiving peer.
Settings() - Constructor for class okhttp3.internal.http2.Settings
 
SETTINGS_HEADER_TABLE_SIZE - Static variable in class okhttp3.internal.http2.Hpack.Writer
 
SETTINGS_HEADER_TABLE_SIZE_LIMIT - Static variable in class okhttp3.internal.http2.Hpack.Writer
The decoder has ultimate control of the maximum size of the dynamic table but we can choose to use less.
setType(MediaType) - Method in class okhttp3.MultipartBody.Builder
Set the MIME type.
setUrlFilter(URLFilter) - Method in class okhttp3.OkUrlFactory
Deprecated.
 
setUseCaches(boolean) - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
sha1(X509Certificate) - Static method in class okhttp3.CertificatePinner
 
sha256(X509Certificate) - Static method in class okhttp3.CertificatePinner
 
shouldPostpone(Route) - Method in class okhttp3.internal.connection.RouteDatabase
Returns true if route has failed recently and should be avoided.
shutdown - Variable in class okhttp3.internal.http2.Http2Connection
 
shutdown(ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection
Degrades this connection such that new streams can neither be created locally, nor accepted from the remote peer.
sink - Variable in class okhttp3.internal.connection.RealConnection
 
sink - Variable in class okhttp3.internal.http1.Http1Codec
 
sink - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
sink - Variable in class okhttp3.internal.http2.Http2Stream
 
sink - Variable in class okhttp3.internal.http2.Http2Writer
 
sink(File) - Method in interface okhttp3.internal.io.FileSystem
Writes to file, discarding any data already present.
sink(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
sink(File, boolean) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
sink - Variable in class okhttp3.internal.ws.RealWebSocket.Streams
 
sink - Variable in class okhttp3.internal.ws.WebSocketWriter
 
sinkBuffer - Variable in class okhttp3.internal.ws.WebSocketWriter
The Buffer of WebSocketWriter.sink.
size() - Method in class okhttp3.Cache
 
size() - Method in class okhttp3.FormBody
The number of key-value pairs in this form-encoded body.
size() - Method in class okhttp3.Headers
Returns the number of field values.
size - Variable in class okhttp3.internal.cache.DiskLruCache
 
size() - Method in class okhttp3.internal.cache.DiskLruCache
Returns the number of bytes currently being used to store the values in this cache.
size() - Method in class okhttp3.internal.http2.Settings
Returns the number of settings that have values assigned.
size(File) - Method in interface okhttp3.internal.io.FileSystem
Returns the number of bytes stored in file, or 0 if it does not exist.
size(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
size() - Method in class okhttp3.MultipartBody
The number of parts in this multipart body.
skipAll(Source, int, TimeUnit) - Static method in class okhttp3.internal.Util
Reads until in is exhausted or the deadline has been reached.
skipLeadingAsciiWhitespace(String, int, int) - Static method in class okhttp3.internal.Util
Increments pos until input[pos] is not ASCII whitespace.
skipTrailingAsciiWhitespace(String, int, int) - Static method in class okhttp3.internal.Util
Decrements limit until input[limit - 1] is not ASCII whitespace.
skipUntil(String, int, String) - Static method in class okhttp3.internal.http.HttpHeaders
Returns the next index in input at or after pos that contains a character from characters.
skipWhitespace(String, int) - Static method in class okhttp3.internal.http.HttpHeaders
Returns the next non-whitespace character in input that is white space.
slashCount(String, int, int) - Static method in class okhttp3.HttpUrl.Builder
Returns the number of '/' and '\' slashes in input, starting at pos.
smallestHeaderTableSizeSetting - Variable in class okhttp3.internal.http2.Hpack.Writer
In the scenario where the dynamic table size changes multiple times between transmission of header blocks, we need to keep track of the smallest value in that interval.
sMaxAgeSeconds - Variable in class okhttp3.CacheControl
 
sMaxAgeSeconds() - Method in class okhttp3.CacheControl
The "s-maxage" directive is the max age for shared caches.
snapshot - Variable in class okhttp3.Cache.CacheResponseBody
 
snapshot() - Method in class okhttp3.internal.cache.DiskLruCache.Entry
Returns a snapshot of this entry.
Snapshot(String, long, Source[], long[]) - Constructor for class okhttp3.internal.cache.DiskLruCache.Snapshot
 
snapshots() - Method in class okhttp3.internal.cache.DiskLruCache
Returns an iterator over the cache's current entries.
socket() - Method in interface okhttp3.Connection
Returns the socket that this connection is using.
socket - Variable in class okhttp3.internal.connection.RealConnection
The application layer socket.
socket() - Method in class okhttp3.internal.connection.RealConnection
 
socket - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
socket(Socket) - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
socket(Socket, String, BufferedSource, BufferedSink) - Method in class okhttp3.internal.http2.Http2Connection.Builder
 
socket - Variable in class okhttp3.internal.http2.Http2Connection
 
socketAddress() - Method in class okhttp3.Route
 
socketFactory - Variable in class okhttp3.Address
 
socketFactory() - Method in class okhttp3.Address
Returns the socket factory for new connections.
socketFactory - Variable in class okhttp3.OkHttpClient.Builder
 
socketFactory(SocketFactory) - Method in class okhttp3.OkHttpClient.Builder
Sets the socket factory used to create connections.
socketFactory - Variable in class okhttp3.OkHttpClient
 
socketFactory() - Method in class okhttp3.OkHttpClient
 
source() - Method in class okhttp3.Cache.CacheResponseBody
 
source - Variable in class okhttp3.internal.connection.RealConnection
 
source - Variable in class okhttp3.internal.http.RealResponseBody
 
source() - Method in class okhttp3.internal.http.RealResponseBody
 
source - Variable in class okhttp3.internal.http1.Http1Codec
 
source - Variable in class okhttp3.internal.http2.Hpack.Reader
 
source - Variable in class okhttp3.internal.http2.Http2Connection.Builder
 
source - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
source - Variable in class okhttp3.internal.http2.Http2Reader
 
source - Variable in class okhttp3.internal.http2.Http2Stream
 
source(File) - Method in interface okhttp3.internal.io.FileSystem
Reads from file.
source(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
source - Variable in class okhttp3.internal.ws.RealWebSocket.Streams
 
source - Variable in class okhttp3.internal.ws.WebSocketReader
 
source - Variable in class okhttp3.ResponseBody.BomAwareReader
 
source() - Method in class okhttp3.ResponseBody
 
SOURCE_FILE - Static variable in class okhttp3.internal.cache2.Relay
 
SOURCE_UPSTREAM - Static variable in class okhttp3.internal.cache2.Relay
 
sourceCount - Variable in class okhttp3.internal.cache2.Relay
Reference count of the number of active sources reading this stream.
sourcePos - Variable in class okhttp3.internal.cache2.Relay.RelaySource
The next byte to read.
sources - Variable in class okhttp3.internal.cache.DiskLruCache.Snapshot
 
sslSocketFactory - Variable in class okhttp3.Address
 
sslSocketFactory() - Method in class okhttp3.Address
Returns the SSL socket factory, or null if this is not an HTTPS address.
sslSocketFactory - Variable in class okhttp3.OkHttpClient.Builder
 
sslSocketFactory(SSLSocketFactory) - Method in class okhttp3.OkHttpClient.Builder
Deprecated.
SSLSocketFactory does not expose its X509TrustManager, which is a field that OkHttp needs to build a clean certificate chain. This method instead must use reflection to extract the trust manager. Applications should prefer to call OkHttpClient.Builder.sslSocketFactory(SSLSocketFactory, X509TrustManager), which avoids such reflection.
sslSocketFactory(SSLSocketFactory, X509TrustManager) - Method in class okhttp3.OkHttpClient.Builder
Sets the socket factory and trust manager used to secure HTTPS connections.
sslSocketFactory - Variable in class okhttp3.OkHttpClient
 
sslSocketFactory() - Method in class okhttp3.OkHttpClient
 
STANDARD_DATE_FORMAT - Static variable in class okhttp3.internal.http.HttpDate
Most websites serve cookies in the blessed format.
start() - Method in class okhttp3.internal.http2.Http2Connection
Sends any initial frames and starts reading frames from the remote peer.
start(boolean) - Method in class okhttp3.internal.http2.Http2Connection
 
state - Variable in class okhttp3.internal.http1.Http1Codec
 
STATE_CLOSED - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_IDLE - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_OPEN_REQUEST_BODY - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_OPEN_RESPONSE_BODY - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_READ_RESPONSE_HEADERS - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_READING_RESPONSE_BODY - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATE_WRITING_REQUEST_BODY - Static variable in class okhttp3.internal.http1.Http1Codec
 
STATIC_HEADER_TABLE - Static variable in class okhttp3.internal.http2.Hpack
 
StatusLine - Class in okhttp3.internal.http
An HTTP response status line like "HTTP/1.1 200 OK".
StatusLine(Protocol, int, String) - Constructor for class okhttp3.internal.http.StatusLine
 
stream - Variable in class okhttp3.internal.http2.Http2Codec
 
StreamAllocation - Class in okhttp3.internal.connection
This class coordinates the relationship between three entities: Connections: physical socket connections to remote servers.
StreamAllocation(ConnectionPool, Address, Call, EventListener, Object) - Constructor for class okhttp3.internal.connection.StreamAllocation
 
streamAllocation - Variable in class okhttp3.internal.http.RealInterceptorChain
 
streamAllocation() - Method in class okhttp3.internal.http.RealInterceptorChain
 
streamAllocation - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
streamAllocation() - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
 
streamAllocation - Variable in class okhttp3.internal.http1.Http1Codec
The stream allocation that owns this stream.
streamAllocation - Variable in class okhttp3.internal.http2.Http2Codec
 
streamAllocation(Call) - Method in class okhttp3.internal.Internal
 
streamAllocation() - Method in class okhttp3.RealCall
 
StreamAllocation.StreamAllocationReference - Class in okhttp3.internal.connection
 
StreamAllocationReference(StreamAllocation, Object) - Constructor for class okhttp3.internal.connection.StreamAllocation.StreamAllocationReference
 
StreamedRequestBody - Class in okhttp3.internal.huc
This request body streams bytes from an application thread to an OkHttp dispatcher thread via a pipe.
StreamedRequestBody(long) - Constructor for class okhttp3.internal.huc.StreamedRequestBody
 
streamFailed(IOException) - Method in class okhttp3.internal.connection.StreamAllocation
 
streamFinished(boolean, HttpCodec, long, IOException) - Method in class okhttp3.internal.connection.StreamAllocation
 
StreamFinishingSource(Source) - Constructor for class okhttp3.internal.http2.Http2Codec.StreamFinishingSource
 
streamId - Variable in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
StreamResetException - Exception in okhttp3.internal.http2
Thrown when an HTTP/2 stream is canceled without damage to the socket that carries it.
StreamResetException(ErrorCode) - Constructor for exception okhttp3.internal.http2.StreamResetException
 
streams - Variable in class okhttp3.internal.http2.Http2Connection
 
streams - Variable in class okhttp3.internal.ws.RealWebSocket
The streams held by this web socket.
Streams(boolean, BufferedSource, BufferedSink) - Constructor for class okhttp3.internal.ws.RealWebSocket.Streams
 
StreamTimeout() - Constructor for class okhttp3.internal.http2.Http2Stream.StreamTimeout
 
string() - Method in class okhttp3.ResponseBody
Returns the response as a string decoded with the charset of the Content-Type header.
stringToLong(String) - Static method in class okhttp3.internal.http.HttpHeaders
 
stripBody(Response) - Static method in class okhttp3.internal.cache.CacheInterceptor
 
subjectToCaCerts - Variable in class okhttp3.internal.tls.BasicTrustRootIndex
 
subtype - Variable in class okhttp3.MediaType
 
subtype() - Method in class okhttp3.MediaType
Returns a specific media subtype, such as "plain" or "png", "mpeg", "mp4" or "xml".
successCount - Variable in class okhttp3.internal.connection.RealConnection
 
successfulCount - Variable in class okhttp3.internal.http.CallServerInterceptor.CountingSink
 
supportedSpec(SSLSocket, boolean) - Method in class okhttp3.ConnectionSpec
Returns a copy of this that omits cipher suites and TLS versions not enabled by sslSocket.
supportsTlsExtensions - Variable in class okhttp3.ConnectionSpec.Builder
 
supportsTlsExtensions(boolean) - Method in class okhttp3.ConnectionSpec.Builder
 
supportsTlsExtensions - Variable in class okhttp3.ConnectionSpec
 
supportsTlsExtensions() - Method in class okhttp3.ConnectionSpec
 
supportsUrl(HttpUrl) - Method in class okhttp3.internal.connection.RealConnection
 
symbol - Variable in class okhttp3.internal.http2.Huffman.Node
 
synReply(boolean, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Writer
 
synStream(boolean, int, int, List<Header>) - Method in class okhttp3.internal.http2.Http2Writer
 
SYSTEM - Static variable in interface okhttp3.Dns
A DNS that uses InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to lookup IP addresses.
SYSTEM - Static variable in interface okhttp3.internal.io.FileSystem
The host machine's local file system.
systemDefaultSslSocketFactory(X509TrustManager) - Method in class okhttp3.OkHttpClient
 
systemDefaultTrustManager() - Method in class okhttp3.OkHttpClient
 

T

tag - Variable in class okhttp3.Request.Builder
 
tag(Object) - Method in class okhttp3.Request.Builder
Attaches tag to the request.
tag - Variable in class okhttp3.Request
 
tag() - Method in class okhttp3.Request
 
takeResponseCookies() - Method in class okhttp3.RecordingCookieJar
 
takeResponseHeaders() - Method in class okhttp3.internal.http2.Http2Stream
Removes and returns the stream's received response headers, blocking if necessary until headers have been received.
TARGET_AUTHORITY - Static variable in class okhttp3.internal.http2.Header
 
TARGET_METHOD - Static variable in class okhttp3.internal.http2.Header
 
TARGET_PATH - Static variable in class okhttp3.internal.http2.Header
 
TARGET_SCHEME - Static variable in class okhttp3.internal.http2.Header
 
TE - Static variable in class okhttp3.internal.http2.Http2Codec
 
tearDown() - Method in class okhttp3.internal.ws.RealWebSocket
For testing: force this web socket to release its threads.
terminalBits - Variable in class okhttp3.internal.http2.Huffman.Node
 
testConnection(ConnectionPool, Route, Socket, long) - Static method in class okhttp3.internal.connection.RealConnection
 
testRunFinished(Result) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
testRunStarted(Description) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
testStarted(Description) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
threadFactory(String, boolean) - Static method in class okhttp3.internal.Util
 
TIME_PATTERN - Static variable in class okhttp3.Cookie
 
timedOut() - Method in class okhttp3.internal.http2.Http2Stream.StreamTimeout
 
timeout - Variable in class okhttp3.internal.cache2.Relay.RelaySource
 
timeout() - Method in class okhttp3.internal.cache2.Relay.RelaySource
 
timeout - Variable in class okhttp3.internal.http1.Http1Codec.AbstractSource
 
timeout() - Method in class okhttp3.internal.http1.Http1Codec.AbstractSource
 
timeout - Variable in class okhttp3.internal.http1.Http1Codec.ChunkedSink
 
timeout() - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSink
 
timeout - Variable in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
 
timeout() - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
 
timeout() - Method in class okhttp3.internal.http2.Http2Reader.ContinuationSource
 
timeout() - Method in class okhttp3.internal.http2.Http2Stream.FramingSink
 
timeout() - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
 
timeout - Variable in class okhttp3.internal.huc.OutputStreamRequestBody
 
timeout() - Method in class okhttp3.internal.huc.OutputStreamRequestBody
 
timeout() - Method in class okhttp3.internal.ws.WebSocketWriter.FrameSink
 
tls - Variable in class okhttp3.ConnectionSpec.Builder
 
tls - Variable in class okhttp3.ConnectionSpec
 
TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_256_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_DES_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DH_anon_WITH_RC4_128_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_DSS_WITH_DES_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_DHE_RSA_WITH_DES_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_anon_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_anon_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_anon_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_anon_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_ECDSA_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDH_RSA_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_ECDHE_RSA_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_EMPTY_RENEGOTIATION_INFO_SCSV - Static variable in class okhttp3.CipherSuite
 
TLS_FALLBACK_SCSV - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_EXPORT_WITH_RC4_40_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_EXPORT_WITH_RC4_40_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_3DES_EDE_CBC_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_DES_CBC_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_DES_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_RC4_128_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_KRB5_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_PSK_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_PSK_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_PSK_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_PSK_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_EXPORT_WITH_DES40_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_EXPORT_WITH_RC4_40_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_3DES_EDE_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_128_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_128_GCM_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_256_CBC_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_AES_256_GCM_SHA384 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_DES_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_NULL_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_NULL_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_NULL_SHA256 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_RC4_128_MD5 - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_RC4_128_SHA - Static variable in class okhttp3.CipherSuite
 
TLS_RSA_WITH_SEED_CBC_SHA - Static variable in class okhttp3.CipherSuite
 
tlsVersion - Variable in class okhttp3.Handshake
 
tlsVersion() - Method in class okhttp3.Handshake
Returns the TLS version used for this connection.
TlsVersion - Enum in okhttp3
Versions of TLS that can be offered when negotiating a secure socket.
TlsVersion(String) - Constructor for enum okhttp3.TlsVersion
 
tlsVersions - Variable in class okhttp3.ConnectionSpec.Builder
 
tlsVersions(TlsVersion...) - Method in class okhttp3.ConnectionSpec.Builder
 
tlsVersions(String...) - Method in class okhttp3.ConnectionSpec.Builder
 
tlsVersions - Variable in class okhttp3.ConnectionSpec
 
tlsVersions() - Method in class okhttp3.ConnectionSpec
Returns the TLS versions to use when negotiating a connection.
toggleMask(Buffer.UnsafeCursor, byte[]) - Static method in class okhttp3.internal.ws.WebSocketProtocol
 
toHumanReadableAscii(String) - Static method in class okhttp3.internal.huc.OkHttpURLConnection
Returns s with control characters and non-ASCII characters replaced with '?'.
TOKEN - Static variable in class okhttp3.internal.http.HttpHeaders
 
TOKEN - Static variable in class okhttp3.MediaType
 
toLoggableString() - Method in class okhttp3.RealCall
Returns a string that describes this call.
toMultimap() - Method in class okhttp3.Headers
 
toMultimap(Headers, String) - Static method in class okhttp3.internal.JavaNetHeaders
Returns an immutable map containing each field to its list of values.
topPrivateDomain() - Method in class okhttp3.HttpUrl
Returns the domain name of this URL's HttpUrl.host() that is one level beneath the public suffix by consulting the public suffix list.
toString() - Method in class okhttp3.Address
 
toString() - Method in class okhttp3.CacheControl
 
toString() - Method in class okhttp3.CertificatePinner.Pin
 
toString() - Method in class okhttp3.Challenge
 
toString() - Method in class okhttp3.CipherSuite
 
toString() - Method in class okhttp3.ConnectionSpec
 
toString() - Method in class okhttp3.Cookie
 
toString(boolean) - Method in class okhttp3.Cookie
 
toString() - Method in class okhttp3.Headers
 
toString() - Method in class okhttp3.HttpUrl.Builder
 
toString() - Method in class okhttp3.HttpUrl
 
toString() - Method in class okhttp3.internal.connection.RealConnection
 
toString() - Method in class okhttp3.internal.connection.StreamAllocation
 
toString() - Method in class okhttp3.internal.http.StatusLine
 
toString() - Method in class okhttp3.internal.http2.Header
 
toString() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
toString() - Method in class okhttp3.MediaType
Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a Content-Type header.
toString() - Method in enum okhttp3.Protocol
Returns the string used to identify this protocol for ALPN, like "http/1.1", "spdy/3.1" or "h2".
toString() - Method in class okhttp3.Request
 
toString() - Method in class okhttp3.Response
 
toString() - Method in class okhttp3.Route
 
trackConditionalCacheHit() - Method in class okhttp3.Cache
 
trackConditionalCacheHit() - Method in interface okhttp3.internal.cache.InternalCache
Track an conditional GET that was satisfied by this cache.
trackResponse(CacheStrategy) - Method in class okhttp3.Cache
 
trackResponse(CacheStrategy) - Method in interface okhttp3.internal.cache.InternalCache
Track an HTTP response being satisfied with cacheStrategy.
TRANSFER_ENCODING - Static variable in class okhttp3.internal.http2.Http2Codec
 
transformRequest(HttpRequest) - Static method in class okhttp3.apache.OkApacheClient
Deprecated.
 
transformResponse(Response) - Static method in class okhttp3.apache.OkApacheClient
Deprecated.
 
trimSubstring(String, int, int) - Static method in class okhttp3.internal.Util
Equivalent to string.substring(pos, limit).trim().
trimToSize() - Method in class okhttp3.internal.cache.DiskLruCache
 
trustManager(SSLSocketFactory) - Method in class okhttp3.internal.platform.Jdk9Platform
 
trustManager(SSLSocketFactory) - Method in class okhttp3.internal.platform.Platform
 
trustRootIndex - Variable in class okhttp3.internal.tls.BasicCertificateChainCleaner
 
TrustRootIndex - Interface in okhttp3.internal.tls
 
type - Variable in class okhttp3.MediaType
 
type() - Method in class okhttp3.MediaType
Returns the high-level media type, such as "text", "image", "audio", "video", or "application".
type - Variable in class okhttp3.MultipartBody.Builder
 
type() - Method in class okhttp3.MultipartBody
 
TYPE_CONTINUATION - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_DATA - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_GOAWAY - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_HEADERS - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_PING - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_PRIORITY - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_PUSH_PROMISE - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_RST_STREAM - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_SETTINGS - Static variable in class okhttp3.internal.http2.Http2
 
TYPE_SUBTYPE - Static variable in class okhttp3.MediaType
 
TYPE_WINDOW_UPDATE - Static variable in class okhttp3.internal.http2.Http2
 

U

unacknowledgedBytesRead - Variable in class okhttp3.internal.http2.Http2Connection
The total number of bytes consumed by the application, but not yet acknowledged by sending a WINDOW_UPDATE frame on this connection.
unacknowledgedBytesRead - Variable in class okhttp3.internal.http2.Http2Stream
The total number of bytes consumed by the application (with Http2Stream.FramingSource.read(okio.Buffer, long)), but not yet acknowledged by sending a WINDOW_UPDATE frame on this stream.
UnexpectedException(Throwable) - Constructor for exception okhttp3.internal.huc.OkHttpURLConnection.UnexpectedException
 
UnknownLengthSource() - Constructor for class okhttp3.internal.http1.Http1Codec.UnknownLengthSource
 
UnrepeatableRequestBody - Interface in okhttp3.internal.http
 
unsupported - Variable in class okhttp3.internal.platform.JdkWithJettyBootPlatform.JettyNegoProvider
Set when remote peer notifies ALPN is unsupported.
update(Response, Response) - Method in class okhttp3.Cache
 
update(Response, Response) - Method in interface okhttp3.internal.cache.InternalCache
Handles a conditional request hit by updating the stored cache response with the headers from network.
UPGRADE - Static variable in class okhttp3.internal.http2.Http2Codec
 
upstream - Variable in class okhttp3.internal.cache2.Relay
Null once the file has a complete copy of the upstream bytes.
upstreamBuffer - Variable in class okhttp3.internal.cache2.Relay
A buffer for upstreamReader to use when pulling bytes from upstream.
upstreamPos - Variable in class okhttp3.internal.cache2.Relay
The number of bytes consumed from Relay.upstream.
upstreamReader - Variable in class okhttp3.internal.cache2.Relay
The thread that currently has access to upstream.
uri() - Method in class okhttp3.HttpUrl
Returns this URL as a java.net.URI.
url - Variable in class okhttp3.Address
 
url() - Method in class okhttp3.Address
Returns a URL with the hostname and port of the origin server.
url - Variable in class okhttp3.Cache.Entry
 
url - Variable in class okhttp3.HttpUrl
Canonical URL.
url() - Method in class okhttp3.HttpUrl
Returns this URL as a java.net.URL.
url - Variable in class okhttp3.internal.http1.Http1Codec.ChunkedSource
 
url - Variable in class okhttp3.Request.Builder
 
url(HttpUrl) - Method in class okhttp3.Request.Builder
 
url(String) - Method in class okhttp3.Request.Builder
Sets the URL target of this request.
url(URL) - Method in class okhttp3.Request.Builder
Sets the URL target of this request.
url - Variable in class okhttp3.Request
 
url() - Method in class okhttp3.Request
 
urlFilter - Variable in class okhttp3.internal.huc.OkHttpURLConnection
 
URLFilter - Interface in okhttp3.internal
Deprecated.
use Interceptor for non-HttpURLConnection filtering.
urlFilter - Variable in class okhttp3.OkUrlFactory
Deprecated.
 
urls() - Method in class okhttp3.Cache
Returns an iterator over the URLs in this cache.
useCompression - Variable in class okhttp3.internal.http2.Hpack.Writer
 
userAgent() - Static method in class okhttp3.internal.Version
 
username(String) - Method in class okhttp3.HttpUrl.Builder
 
username - Variable in class okhttp3.HttpUrl
Decoded username.
username() - Method in class okhttp3.HttpUrl
Returns the decoded username, or an empty string if none is present.
USERNAME_ENCODE_SET - Static variable in class okhttp3.HttpUrl
 
usingProxy() - Method in class okhttp3.internal.huc.DelegatingHttpsURLConnection
 
usingProxy() - Method in class okhttp3.internal.huc.OkHttpURLConnection
Returns true if either: A specific proxy was explicitly configured for this connection.
UTC - Static variable in class okhttp3.internal.Util
GMT and UTC are equivalent for our purposes.
UTF8 - Static variable in class okhttp3.logging.HttpLoggingInterceptor
 
UTF_16_BE - Static variable in class okhttp3.internal.Util
 
UTF_16_BE_BOM - Static variable in class okhttp3.internal.Util
 
UTF_16_LE - Static variable in class okhttp3.internal.Util
 
UTF_16_LE_BOM - Static variable in class okhttp3.internal.Util
 
UTF_32_BE - Static variable in class okhttp3.internal.Util
 
UTF_32_BE_BOM - Static variable in class okhttp3.internal.Util
 
UTF_32_LE - Static variable in class okhttp3.internal.Util
 
UTF_32_LE_BOM - Static variable in class okhttp3.internal.Util
 
UTF_8 - Static variable in class okhttp3.internal.Util
 
UTF_8_BOM - Static variable in class okhttp3.internal.Util
 
Util - Class in okhttp3.internal
Junk drawer of utility methods.
Util() - Constructor for class okhttp3.internal.Util
 

V

validateCloseCode(int) - Static method in class okhttp3.internal.ws.WebSocketProtocol
 
validateKey(String) - Method in class okhttp3.internal.cache.DiskLruCache
 
value - Variable in class okhttp3.Cookie.Builder
 
value(String) - Method in class okhttp3.Cookie.Builder
 
value - Variable in class okhttp3.Cookie
 
value() - Method in class okhttp3.Cookie
Returns a possibly-empty string with this cookie's value.
value(int) - Method in class okhttp3.FormBody
 
value(int) - Method in class okhttp3.Headers
Returns the value at index.
value - Variable in class okhttp3.internal.http2.Header
Value in UTF-8 encoding.
valueCount - Variable in class okhttp3.internal.cache.DiskLruCache
 
valueOf(String) - Static method in enum okhttp3.HttpUrl.Builder.ParseResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum okhttp3.internal.http2.ErrorCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum okhttp3.logging.HttpLoggingInterceptor.Level
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum okhttp3.Protocol
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum okhttp3.TlsVersion
Returns the enum constant of this type with the specified name.
values - Variable in class okhttp3.FormBody.Builder
 
values(String) - Method in class okhttp3.Headers
Returns an immutable list of the header values for name.
values() - Static method in enum okhttp3.HttpUrl.Builder.ParseResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum okhttp3.internal.http2.ErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
values - Variable in class okhttp3.internal.http2.Settings
Flag values.
values() - Static method in enum okhttp3.logging.HttpLoggingInterceptor.Level
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum okhttp3.Protocol
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum okhttp3.TlsVersion
Returns an array containing the constants of this enum type, in the order they are declared.
varyFields(Response) - Static method in class okhttp3.internal.http.HttpHeaders
 
varyFields(Headers) - Static method in class okhttp3.internal.http.HttpHeaders
Returns the names of the request headers that need to be checked for equality when caching.
varyHeaders - Variable in class okhttp3.Cache.Entry
 
varyHeaders(Response) - Static method in class okhttp3.internal.http.HttpHeaders
Returns the subset of the headers in response's request that impact the content of response's body.
varyHeaders(Headers, Headers) - Static method in class okhttp3.internal.http.HttpHeaders
Returns the subset of the headers in requestHeaders that impact the content of response's body.
varyMatches(Response, Headers, Request) - Static method in class okhttp3.internal.http.HttpHeaders
Returns true if none of the Vary headers have changed between cachedRequest and newRequest.
verify(String, SSLSession) - Method in class okhttp3.internal.tls.OkHostnameVerifier
 
verify(String, X509Certificate) - Method in class okhttp3.internal.tls.OkHostnameVerifier
 
verify(String, SSLSession) - Method in class okhttp3.RecordingHostnameVerifier
 
VERIFY_AS_IP_ADDRESS - Static variable in class okhttp3.internal.Util
Quick and dirty pattern to differentiate IP addresses from hostnames.
verifyAsIpAddress(String) - Static method in class okhttp3.internal.Util
Returns true if host is not a host name and might be an IP address.
verifyHostname(String, X509Certificate) - Method in class okhttp3.internal.tls.OkHostnameVerifier
Returns true if certificate matches hostname.
verifyHostname(String, String) - Method in class okhttp3.internal.tls.OkHostnameVerifier
Returns true iff hostname matches the domain name pattern.
verifyIpAddress(String, X509Certificate) - Method in class okhttp3.internal.tls.OkHostnameVerifier
Returns true if certificate matches ipAddress.
verifySignature(X509Certificate, X509Certificate) - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
Returns true if toVerify was signed by signingCert's public key.
VERSION - Static variable in class okhttp3.Cache
 
Version - Class in okhttp3.internal
 
Version() - Constructor for class okhttp3.internal.Version
 
VERSION_1 - Static variable in class okhttp3.internal.cache.DiskLruCache
 

W

waitForIo() - Method in class okhttp3.internal.http2.Http2Stream
Like Object.wait(long), but throws an InterruptedIOException when interrupted instead of the more awkward InterruptedException.
waitUntilReadable() - Method in class okhttp3.internal.http2.Http2Stream.FramingSource
Returns once the source is either readable or finished.
WARN - Static variable in class okhttp3.internal.platform.Platform
 
WebSocket - Interface in okhttp3
A non-blocking interface to a web socket.
WebSocket.Factory - Interface in okhttp3
 
WebSocketListener - Class in okhttp3
 
WebSocketListener() - Constructor for class okhttp3.WebSocketListener
 
WebSocketProtocol - Class in okhttp3.internal.ws
 
WebSocketProtocol() - Constructor for class okhttp3.internal.ws.WebSocketProtocol
 
WebSocketReader - Class in okhttp3.internal.ws
An RFC 6455-compatible WebSocket frame reader.
WebSocketReader(boolean, BufferedSource, WebSocketReader.FrameCallback) - Constructor for class okhttp3.internal.ws.WebSocketReader
 
WebSocketReader.FrameCallback - Interface in okhttp3.internal.ws
 
WebSocketWriter - Class in okhttp3.internal.ws
An RFC 6455-compatible WebSocket frame writer.
WebSocketWriter(boolean, BufferedSink, Random) - Constructor for class okhttp3.internal.ws.WebSocketWriter
 
WebSocketWriter.FrameSink - Class in okhttp3.internal.ws
 
WILDCARD - Static variable in class okhttp3.CertificatePinner.Pin
 
WILDCARD_LABEL - Static variable in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
 
windowUpdate(int, long) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
 
windowUpdate(int, long) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
Notifies that an additional windowSizeIncrement bytes can be sent on streamId, or the connection if streamId is zero.
windowUpdate(int, long) - Method in class okhttp3.internal.http2.Http2Writer
Inform peer that an additional windowSizeIncrement bytes can be sent on streamId, or the connection if streamId is zero.
withCertificateChainCleaner(CertificateChainCleaner) - Method in class okhttp3.CertificatePinner
Returns a certificate pinner that uses certificateChainCleaner.
withCharset(Charset) - Method in class okhttp3.Challenge
Returns a copy of this charset that expects a credential encoded with charset.
withConnectTimeout(int, TimeUnit) - Method in interface okhttp3.Interceptor.Chain
 
withConnectTimeout(int, TimeUnit) - Method in class okhttp3.internal.http.RealInterceptorChain
 
withReadTimeout(int, TimeUnit) - Method in interface okhttp3.Interceptor.Chain
 
withReadTimeout(int, TimeUnit) - Method in class okhttp3.internal.http.RealInterceptorChain
 
withWriteTimeout(int, TimeUnit) - Method in interface okhttp3.Interceptor.Chain
 
withWriteTimeout(int, TimeUnit) - Method in class okhttp3.internal.http.RealInterceptorChain
 
write(Buffer, long) - Method in class okhttp3.internal.cache.FaultHidingSink
 
write(long, Buffer, long) - Method in class okhttp3.internal.cache2.FileOperator
Write byteCount bytes from source to the file at pos.
write(Buffer, long) - Method in class okhttp3.internal.http.CallServerInterceptor.CountingSink
 
write(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.ChunkedSink
 
write(Buffer, long) - Method in class okhttp3.internal.http1.Http1Codec.FixedLengthSink
 
write(Buffer, long) - Method in class okhttp3.internal.http2.Http2Stream.FramingSink
 
write(Buffer, long) - Method in class okhttp3.internal.ws.WebSocketWriter.FrameSink
 
writeAbortCount - Variable in class okhttp3.Cache
 
writeAbortCount() - Method in class okhttp3.Cache
 
writeByteString(ByteString) - Method in class okhttp3.internal.http2.Hpack.Writer
 
writeCertList(BufferedSink, List<Certificate>) - Method in class okhttp3.Cache.Entry
 
writeClose(int, ByteString) - Method in class okhttp3.internal.ws.WebSocketWriter
Send a close frame with optional code and reason.
writeContinuationFrames(int, long) - Method in class okhttp3.internal.http2.Http2Writer
 
writeControlFrame(int, ByteString) - Method in class okhttp3.internal.ws.WebSocketWriter
 
writeData(int, boolean, Buffer, long) - Method in class okhttp3.internal.http2.Http2Connection
Callers of this method are not thread safe, and sometimes on application threads.
writeHeader(ByteString, long, long) - Method in class okhttp3.internal.cache2.Relay
 
writeHeaders(List<Header>) - Method in class okhttp3.internal.http2.Hpack.Writer
This does not use "never indexed" semantics for sensitive headers.
writeInt(int, int, int) - Method in class okhttp3.internal.http2.Hpack.Writer
 
writeLengths(BufferedSink) - Method in class okhttp3.internal.cache.DiskLruCache.Entry
Append space-prefixed lengths to writer.
writeMedium(BufferedSink, int) - Static method in class okhttp3.internal.http2.Http2Writer
 
writeMessageFrame(int, long, boolean, boolean) - Method in class okhttp3.internal.ws.WebSocketWriter
 
writeMetadata(long) - Method in class okhttp3.internal.cache2.Relay
 
writeOneFrame() - Method in class okhttp3.internal.ws.RealWebSocket
Attempts to remove a single frame from a queue and send it.
writeOrCountBytes(BufferedSink, boolean) - Method in class okhttp3.FormBody
Either writes this request to sink or measures its content length.
writeOrCountBytes(BufferedSink, boolean) - Method in class okhttp3.MultipartBody
Either writes this request to sink or measures its content length.
writePing(boolean, int, int) - Method in class okhttp3.internal.http2.Http2Connection
 
writePing(ByteString) - Method in class okhttp3.internal.ws.WebSocketWriter
Send a ping with the supplied payload.
writePingAndAwaitPong() - Method in class okhttp3.internal.http2.Http2Connection
For testing: sends a ping and waits for a pong.
writePingFrame() - Method in class okhttp3.internal.ws.RealWebSocket
 
writePong(ByteString) - Method in class okhttp3.internal.ws.WebSocketWriter
Send a pong with the supplied payload.
Writer(Buffer) - Constructor for class okhttp3.internal.http2.Hpack.Writer
 
Writer(int, boolean, Buffer) - Constructor for class okhttp3.internal.http2.Hpack.Writer
 
writer - Variable in class okhttp3.internal.http2.Http2Connection
 
writer - Variable in class okhttp3.internal.ws.RealWebSocket
Null until this web socket is connected.
writerClosed - Variable in class okhttp3.internal.ws.WebSocketWriter
 
writeRequest(Headers, String) - Method in class okhttp3.internal.http1.Http1Codec
Returns bytes of a request header for sending on an HTTP transport.
writeRequestHeaders(Request) - Method in interface okhttp3.internal.http.HttpCodec
This should update the HTTP engine's sentRequestMillis field.
writeRequestHeaders(Request) - Method in class okhttp3.internal.http1.Http1Codec
Prepares the HTTP headers and sends them to the server.
writeRequestHeaders(Request) - Method in class okhttp3.internal.http2.Http2Codec
 
writerExecutor - Variable in class okhttp3.internal.http2.Http2Connection
Asynchronously writes frames to the outgoing socket.
writerRunnable - Variable in class okhttp3.internal.ws.RealWebSocket
This runnable processes the outgoing queues.
writeSuccessCount - Variable in class okhttp3.Cache
 
writeSuccessCount() - Method in class okhttp3.Cache
 
writeSynReply(int, boolean, List<Header>) - Method in class okhttp3.internal.http2.Http2Connection
 
writeSynReset(int, ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection
 
writeSynResetLater(int, ErrorCode) - Method in class okhttp3.internal.http2.Http2Connection
 
writeTimeout - Variable in class okhttp3.internal.http.RealInterceptorChain
 
writeTimeout - Variable in class okhttp3.internal.http2.Http2Stream
 
writeTimeout() - Method in class okhttp3.internal.http2.Http2Stream
 
writeTimeout - Variable in class okhttp3.OkHttpClient.Builder
 
writeTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
Sets the default write timeout for new connections.
writeTimeout - Variable in class okhttp3.OkHttpClient
 
writeTimeoutMillis() - Method in interface okhttp3.Interceptor.Chain
 
writeTimeoutMillis() - Method in class okhttp3.internal.http.RealInterceptorChain
 
writeTimeoutMillis() - Method in class okhttp3.OkHttpClient
Default write timeout (in milliseconds).
writeTo(BufferedSink) - Method in class okhttp3.apache.HttpEntityBody
 
writeTo(DiskLruCache.Editor) - Method in class okhttp3.Cache.Entry
 
writeTo(BufferedSink) - Method in class okhttp3.FormBody
 
writeTo(BufferedSink) - Method in class okhttp3.internal.huc.BufferedRequestBody
 
writeTo(BufferedSink) - Method in class okhttp3.internal.huc.StreamedRequestBody
 
writeTo(BufferedSink) - Method in class okhttp3.MultipartBody
 
writeTo(BufferedSink) - Method in class okhttp3.RequestBody
Writes the content of this request to sink.
writeWindowUpdateLater(int, long) - Method in class okhttp3.internal.http2.Http2Connection
 
written - Variable in class okhttp3.internal.cache.DiskLruCache.Editor
 

Y

YEAR_PATTERN - Static variable in class okhttp3.Cookie
 
A B C D E F G H I J K L M N O P Q R S T U V W Y 
Skip navigation links