- 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.Http1ExchangeCodec.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.
- acquireConnectionNoEvents(RealConnection) - Method in class okhttp3.internal.connection.Transmitter
-
- 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 header with the specified name and value.
- add(String, Date) - Method in class okhttp3.Headers.Builder
-
Add a header with the specified name and formatted date.
- add(String, Instant) - Method in class okhttp3.Headers.Builder
-
Add a header with the specified name and formatted instant.
- addAll(Headers) - Method in class okhttp3.Headers.Builder
-
Adds all headers from an existing collection.
- 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
-
- addPlatformTrustedCertificates() - Method in class okhttp3.tls.HandshakeCertificates.Builder
-
Add all of the host platform's trusted root certificates.
- 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.
- 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.ExchangeFinder
-
- address - Variable in class okhttp3.internal.connection.RouteSelector
-
- address - Variable in class okhttp3.Route
-
- address() - Method in class okhttp3.Route
-
- addSubjectAlternativeName(String) - Method in class okhttp3.tls.HeldCertificate.Builder
-
Adds a subject alternative name (SAN) to the certificate.
- addSuppressedExceptionMethod - Static variable in class okhttp3.internal.Util
-
- addSuppressedIfPossible(Throwable, Throwable) - Static method in class okhttp3.internal.Util
-
- addTrustedCertificate(X509Certificate) - Method in class okhttp3.tls.HandshakeCertificates.Builder
-
Add a trusted root certificate to use when authenticating a peer.
- addUnsafeNonAscii(String, String) - Method in class okhttp3.Headers.Builder
-
Add a header with the specified name and value.
- 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.Jdk8WithJettyBootPlatform
-
- 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
-
- allocationLimit - Variable in class okhttp3.internal.connection.RealConnection
-
The maximum number of concurrent streams that can be 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
-
- AlpnProvider(List<String>) - Constructor for class okhttp3.internal.platform.Jdk8WithJettyBootPlatform.AlpnProvider
-
- 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.
- altNames - Variable in class okhttp3.tls.HeldCertificate.Builder
-
- 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.
- 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
-
- 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
-
- ASCII - Static variable in class okhttp3.dnsoverhttps.DnsRecordCodec
-
- 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
-
Performs either preemptive authentication before connecting to a proxy server,
or reactive authentication after receiving a challenge from either an origin web
server or 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.
- authParams - Variable in class okhttp3.Challenge
-
- authParams() - Method in class okhttp3.Challenge
-
Returns the auth params, including realm
and charset
if present, but as
strings.
- awaitingPong - Variable in class okhttp3.internal.http2.Http2Connection
-
True if we have sent a ping that is still awaiting a reply.
- awaitingPong - Variable in class okhttp3.internal.ws.RealWebSocket
-
True if we have sent a ping that is still awaiting a reply.
- awaitPong() - Method in class okhttp3.internal.http2.Http2Connection
-
For testing: waits until requiredPongCount
pings have been received from the peer.
- awaitTermination(int, TimeUnit) - Method in class okhttp3.internal.ws.RealWebSocket
-
For testing: wait until the web socket's executor has terminated.
- Cache - Class in okhttp3
-
Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
bandwidth.
- Cache(File, long) - Constructor for class okhttp3.Cache
-
Create a cache of at most maxSize
bytes in directory
.
- 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.Exchange
-
- call - Variable in class okhttp3.internal.connection.ExchangeFinder
-
- call - Variable in class okhttp3.internal.connection.RouteSelector
-
- call - Variable in class okhttp3.internal.connection.Transmitter
-
- call - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- call() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- call - Variable in class okhttp3.internal.sse.RealEventSource
-
- call - Variable in class okhttp3.internal.ws.RealWebSocket
-
Non-null for client web sockets.
- Call.Factory - Interface in okhttp3
-
- Callback - Interface in okhttp3
-
- callback - Variable in class okhttp3.internal.sse.ServerSentEventReader
-
- callEnd(Call) - Method in class okhttp3.EventListener
-
Invoked immediately after a call has completely ended.
- callEnd(Call) - Method in class okhttp3.logging.LoggingEventListener
-
- callFailed(Call, IOException) - Method in class okhttp3.EventListener
-
Invoked when a call fails permanently.
- callFailed(Call, IOException) - Method in class okhttp3.logging.LoggingEventListener
-
- calls - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- CallServerInterceptor - Class in okhttp3.internal.http
-
This is the last interceptor in the chain.
- CallServerInterceptor(boolean) - Constructor for class okhttp3.internal.http.CallServerInterceptor
-
- callsPerHost - Variable in class okhttp3.RealCall.AsyncCall
-
- callsPerHost() - Method in class okhttp3.RealCall.AsyncCall
-
- callStackTrace - Variable in class okhttp3.internal.connection.Transmitter
-
- callStackTrace - Variable in class okhttp3.internal.connection.Transmitter.TransmitterReference
-
Captures the stack trace at the time the Call is executed or enqueued.
- callStart(Call) - Method in class okhttp3.EventListener
-
Invoked as soon as a call is enqueued or executed by a client.
- callStart() - Method in class okhttp3.internal.connection.Transmitter
-
- callStart(Call) - Method in class okhttp3.logging.LoggingEventListener
-
- callTimeout - Variable in class okhttp3.OkHttpClient.Builder
-
- callTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the default timeout for complete calls.
- callTimeout(Duration) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the default timeout for complete calls.
- callTimeout - Variable in class okhttp3.OkHttpClient
-
- callTimeoutMillis() - Method in class okhttp3.OkHttpClient
-
Default call timeout (in milliseconds).
- cancel() - Method in interface okhttp3.Call
-
Cancels the request, if possible.
- cancel() - Method in class okhttp3.internal.connection.Exchange
-
- cancel() - Method in class okhttp3.internal.connection.RealConnection
-
- cancel() - Method in class okhttp3.internal.connection.Transmitter
-
Immediately closes the socket connection if it's currently held.
- cancel() - Method in interface okhttp3.internal.http.ExchangeCodec
-
Cancel this stream.
- cancel() - Method in class okhttp3.internal.http1.Http1ExchangeCodec
-
- cancel() - Method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- CANCEL - Static variable in interface okhttp3.internal.http2.PushObserver
-
- cancel() - Method in class okhttp3.internal.sse.RealEventSource
-
- cancel() - Method in class okhttp3.internal.ws.RealWebSocket
-
- cancel() - Method in class okhttp3.RealCall
-
- cancel() - Method in interface okhttp3.sse.EventSource
-
Immediately and violently release resources held by this event source.
- cancel() - Method in interface okhttp3.WebSocket
-
Immediately and violently release resources held by this web socket, discarding any enqueued
messages.
- CANCEL_AFTER_CLOSE_MILLIS - Static variable in class okhttp3.internal.ws.RealWebSocket
-
- cancelAfterCloseMillis - Variable in class okhttp3.internal.ws.RealWebSocket.Close
-
- cancelAll() - Method in class okhttp3.Dispatcher
-
Cancel all calls currently enqueued or executing.
- canceled - Variable in class okhttp3.internal.connection.Transmitter
-
- canceled - Variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
- 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.
- canRetry() - Method in class okhttp3.internal.connection.Transmitter
-
- certificate - Variable in class okhttp3.tls.HeldCertificate
-
- certificate() - Method in class okhttp3.tls.HeldCertificate
-
- certificateAuthority(int) - Method in class okhttp3.tls.HeldCertificate.Builder
-
Set this certificate to be a signing certificate, with up to maxIntermediateCas
intermediate signing certificates beneath it.
- 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
-
- certificatePem() - Method in class okhttp3.tls.HeldCertificate
-
- 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
-
- chain - Variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
- Challenge - Class in okhttp3
-
An RFC 7235 challenge.
- Challenge(String, Map<String, String>) - Constructor for class okhttp3.Challenge
-
- Challenge(String, String) - Constructor for class okhttp3.Challenge
-
- challenges() - Method in class okhttp3.Response
-
Returns the RFC 7235 authorization challenges appropriate for this response's code.
- chars - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
Distinguished name characters.
- charset() - Method in class okhttp3.Challenge
-
Returns the charset that should be used to encode the credentials.
- 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.
- check(String, List<Certificate>) - Method in class okhttp3.CertificatePinner
-
Confirms that at least one of the certificates pinned for hostname
is in peerCertificates
.
- check(String, Certificate...) - Method in class okhttp3.CertificatePinner
-
- checkDuration(String, long, TimeUnit) - Static method in class okhttp3.internal.Util
-
- checkLowercase(ByteString) - Static method in class okhttp3.internal.http2.Hpack
-
An HTTP/2 response cannot contain uppercase header characters and must be treated as
malformed.
- checkName(String) - Static method in class okhttp3.Headers
-
- checkNotClosed() - Method in class okhttp3.internal.cache.DiskLruCache
-
- 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
-
- checkSupportResponse(String, Response) - Method in class okhttp3.Response.Builder
-
- checkUpgradeSuccess(Response, Exchange) - Method in class okhttp3.internal.ws.RealWebSocket
-
- checkValue(String, String) - Static method in class okhttp3.Headers
-
- children - Variable in class okhttp3.internal.http2.Huffman.Node
-
- ChunkedSink() - Constructor for class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSink
-
- ChunkedSource(HttpUrl) - Constructor for class okhttp3.internal.http1.Http1ExchangeCodec.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.internal.connection.RealConnectionPool
-
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.internal.cache.DiskLruCache
-
- cleanupRunnable - Variable in class okhttp3.internal.connection.RealConnectionPool
-
- cleanupRunning - Variable in class okhttp3.internal.connection.RealConnectionPool
-
- 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.dnsoverhttps.DnsOverHttps.Builder
-
- client(OkHttpClient) - Method in class okhttp3.dnsoverhttps.DnsOverHttps.Builder
-
- client - Variable in class okhttp3.dnsoverhttps.DnsOverHttps
-
- client() - Method in class okhttp3.dnsoverhttps.DnsOverHttps
-
- client - Variable in class okhttp3.internal.connection.ConnectInterceptor
-
- client - Variable in class okhttp3.internal.connection.Transmitter
-
- client - Variable in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
- client - Variable in class okhttp3.internal.http1.Http1ExchangeCodec
-
The client that configures this stream.
- 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.ws.RealWebSocket.Streams
-
- client - Variable in class okhttp3.RealCall
-
- clientProviderClass - Variable in class okhttp3.internal.platform.Jdk8WithJettyBootPlatform
-
- 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.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.connection.Exchange.RequestBodySink
-
- close() - Method in class okhttp3.internal.connection.Exchange.ResponseBodySource
-
- close() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSink
-
- close() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSource
-
- close() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.FixedLengthSource
-
- close() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.KnownLengthSink
-
- close() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.UnknownLengthSource
-
- close() - Method in class okhttp3.internal.http2.Http2Connection
-
Closes this connection.
- close(ErrorCode, ErrorCode, IOException) - 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, IOException) - 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.connection.Exchange.RequestBodySink
-
- closed - Variable in class okhttp3.internal.connection.Exchange.ResponseBodySource
-
- closed - Variable in class okhttp3.internal.http1.Http1ExchangeCodec.AbstractSource
-
- closed - Variable in class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSink
-
- closed - Variable in class okhttp3.internal.http1.Http1ExchangeCodec.KnownLengthSink
-
- 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.ws.WebSocketReader
-
- closed - Variable in class okhttp3.internal.ws.WebSocketWriter.FrameSink
-
- closed - Variable in class okhttp3.ResponseBody.BomAwareReader
-
- closeInternal(ErrorCode, IOException) - 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.
- cn - Variable in class okhttp3.tls.HeldCertificate.Builder
-
- 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.Exchange
-
- 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
-
- commonName(String) - Method in class okhttp3.tls.HeldCertificate.Builder
-
Set this certificate's common name (CN).
- COMPATIBLE_TLS - Static variable in class okhttp3.ConnectionSpec
-
A backwards-compatible fallback configuration that works on obsolete client platforms and can
connect to obsolete servers.
- complete - Variable in class okhttp3.internal.cache2.Relay
-
True if there are no further bytes to read from upstream
.
- complete(IOException) - Method in class okhttp3.internal.connection.Exchange.RequestBodySink
-
- complete(IOException) - Method in class okhttp3.internal.connection.Exchange.ResponseBodySource
-
- completed - Variable in class okhttp3.internal.connection.Exchange.RequestBodySink
-
- completed - Variable in class okhttp3.internal.connection.Exchange.ResponseBodySource
-
- completeEdit(DiskLruCache.Editor, boolean) - Method in class okhttp3.internal.cache.DiskLruCache
-
- completeEvent(String, String, Buffer) - Method in class okhttp3.internal.sse.ServerSentEventReader
-
- 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
.
- configureSslSocketFactory(SSLSocketFactory) - Method in class okhttp3.internal.platform.Platform
-
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.Jdk8WithJettyBootPlatform
-
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.Jdk9Platform
-
- 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(OkHttpClient) - Method in class okhttp3.internal.sse.RealEventSource
-
- 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.
- connectEnd(Call, InetSocketAddress, Proxy, Protocol) - Method in class okhttp3.logging.LoggingEventListener
-
- connectFailed(Call, InetSocketAddress, Proxy, Protocol, IOException) - Method in class okhttp3.EventListener
-
Invoked when a connection attempt fails.
- connectFailed(Route, IOException) - Method in class okhttp3.internal.connection.RealConnectionPool
-
Track a bad route in the route database.
- connectFailed(URI, SocketAddress, IOException) - Method in class okhttp3.internal.proxy.NullProxySelector
-
- connectFailed(Call, InetSocketAddress, Proxy, Protocol, IOException) - Method in class okhttp3.logging.LoggingEventListener
-
- connectingConnection - Variable in class okhttp3.internal.connection.ExchangeFinder
-
- connectingConnection() - Method in class okhttp3.internal.connection.ExchangeFinder
-
- ConnectInterceptor - Class in okhttp3.internal.connection
-
Opens a connection to the target server and proceeds to the next interceptor.
- ConnectInterceptor(OkHttpClient) - Constructor for class okhttp3.internal.connection.ConnectInterceptor
-
- Connection - Interface in okhttp3
-
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
- connection() - Method in interface okhttp3.Interceptor.Chain
-
Returns the connection the request will be executed on.
- connection() - Method in class okhttp3.internal.connection.Exchange
-
- connection - Variable in class okhttp3.internal.connection.Transmitter
-
- connection() - Method in interface okhttp3.internal.http.ExchangeCodec
-
Returns the connection that carries this codec.
- connection() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- connection() - Method in class okhttp3.internal.http1.Http1ExchangeCodec
-
- CONNECTION - Static variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
- connection - Variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
- connection() - Method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- 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
.
- connectionAcquired(Call, Connection) - Method in class okhttp3.logging.LoggingEventListener
-
- connectionBecameIdle(RealConnection) - Method in class okhttp3.internal.connection.RealConnectionPool
-
Notify this pool that connection
has become idle.
- connectionCount() - Method in class okhttp3.ConnectionPool
-
Returns total number of connections in the pool.
- connectionCount() - Method in class okhttp3.internal.connection.RealConnectionPool
-
- connectionFailed(IOException) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
Reports a failure to complete a connection.
- connectionName - Variable in class okhttp3.internal.http2.Http2Connection.Builder
-
- connectionName - Variable in class okhttp3.internal.http2.Http2Connection
-
- 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.ExchangeFinder
-
- connectionPool - Variable in class okhttp3.internal.connection.RealConnection
-
- connectionPool - Variable in class okhttp3.internal.connection.Transmitter
-
- 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
.
- connectionReleased(Call, Connection) - Method in class okhttp3.logging.LoggingEventListener
-
- connections - Variable in class okhttp3.internal.connection.RealConnectionPool
-
- 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
-
- 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.
- connectStart(Call, InetSocketAddress, Proxy) - Method in class okhttp3.logging.LoggingEventListener
-
- 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(Duration) - 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.
- containsInvalidHostnameAsciiCodes(String) - Static method in class okhttp3.internal.Util
-
- CONTENT_TYPE - Static variable in class okhttp3.FormBody
-
- contentLength - Variable in class okhttp3.Cache.CacheResponseBody
-
- contentLength() - Method in class okhttp3.Cache.CacheResponseBody
-
- contentLength() - Method in class okhttp3.FormBody
-
- contentLength - Variable in class okhttp3.internal.connection.Exchange.RequestBodySink
-
The exact number of bytes to be written, or -1L if that is unknown.
- contentLength - Variable in class okhttp3.internal.connection.Exchange.ResponseBodySource
-
- 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.ws.WebSocketWriter.FrameSink
-
- contentLength - Variable in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.RequestBody
-
- contentLength() - Method in class okhttp3.ResponseBody
-
- contentType - 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 - Variable in class okhttp3.MultipartBody
-
- contentType() - Method in class okhttp3.MultipartBody
-
- contentType() - Method in class okhttp3.RequestBody
-
Returns the Content-Type header for this body.
- contentType() - Method in class okhttp3.ResponseBody
-
- contentTypeString - Variable in class okhttp3.internal.http.RealResponseBody
-
Use a string to avoid parsing the content type until needed.
- continuation - Variable in class okhttp3.internal.http2.Http2Reader
-
- ContinuationSource(BufferedSource) - Constructor for class okhttp3.internal.http2.Http2Reader.ContinuationSource
-
- controlFrameBuffer - Variable in class okhttp3.internal.ws.WebSocketReader
-
- Cookie - Class in okhttp3
-
- Cookie(String, String, long, String, String, boolean, boolean, boolean, boolean) - Constructor for class okhttp3.Cookie
-
- Cookie(Cookie.Builder) - Constructor for class okhttp3.Cookie
-
- Cookie.Builder - Class in okhttp3
-
Builds a cookie.
- cookieHandler - Variable in class okhttp3.JavaNetCookieJar
-
- cookieHeader(List<Cookie>) - Method in class okhttp3.internal.http.BridgeInterceptor
-
Returns a 'Cookie' HTTP request header with all cookies, like a=b; c=d
.
- CookieJar - Interface in okhttp3
-
Provides policy and persistence for HTTP cookies.
- cookieJar - Variable in class okhttp3.internal.http.BridgeInterceptor
-
- cookieJar - Variable in class okhttp3.OkHttpClient.Builder
-
- cookieJar(CookieJar) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
outgoing HTTP requests.
- cookieJar - Variable in class okhttp3.OkHttpClient
-
- cookieJar() - Method in class okhttp3.OkHttpClient
-
- COUNT - Static variable in class okhttp3.internal.http2.Settings
-
Total number of settings.
- create(Call) - Method in interface okhttp3.EventListener.Factory
-
- create(FileSystem, File, int, int, long) - Static method in class okhttp3.internal.cache.DiskLruCache
-
Create a cache which will reside in directory
.
- create(Call) - Method in class okhttp3.logging.LoggingEventListener.Factory
-
- 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, ByteString) - 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.connection.Transmitter
-
- createFactory(OkHttpClient) - Static method in class okhttp3.sse.EventSources
-
- createFormData(String, String) - Static method in class okhttp3.MultipartBody.Part
-
- createFormData(String, String, RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- createRequestBody(Request, boolean) - Method in class okhttp3.internal.connection.Exchange
-
- createRequestBody(Request, long) - Method in interface okhttp3.internal.http.ExchangeCodec
-
Returns an output stream where the request body can be streamed.
- createRequestBody(Request, long) - Method in class okhttp3.internal.http1.Http1ExchangeCodec
-
- createRequestBody(Request, long) - Method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- 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.
- Credentials - Class in okhttp3
-
Factory for HTTP authorization credentials.
- Credentials() - Constructor for class okhttp3.Credentials
-
- CRLF - Static variable in class okhttp3.internal.sse.ServerSentEventReader
-
- CRLF - Static variable in class okhttp3.MultipartBody
-
- cur - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
Temporary variable to store positions of the currently parsed item.
- currentEditor - Variable in class okhttp3.internal.cache.DiskLruCache.Entry
-
The ongoing edit or null if this entry is not being edited.
- currentPushRequests - Variable in class okhttp3.internal.http2.Http2Connection
-
- DASHDASH - Static variable in class okhttp3.MultipartBody
-
- data(boolean, int, BufferedSource, int) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- data(boolean, int, BufferedSource, int) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
- data(boolean, int, Buffer, int) - Method in class okhttp3.internal.http2.Http2Writer
-
source.length
may be longer than the max length of the variant's data frame.
- DATA - Static variable in class okhttp3.internal.sse.ServerSentEventReader
-
- 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
-
- decode(byte[]) - Method in class okhttp3.internal.http2.Huffman
-
- decodeAnswers(String, ByteString) - Static method in class okhttp3.dnsoverhttps.DnsRecordCodec
-
- 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.
- DEFAULT - Static variable in class okhttp3.CertificatePinner
-
- DEFAULT - Static variable in interface okhttp3.logging.HttpLoggingInterceptor.Logger
-
- DEFAULT_CONNECTION_SPECS - Static variable in class okhttp3.OkHttpClient
-
- DEFAULT_DURATION_MILLIS - Static variable in class okhttp3.tls.HeldCertificate.Builder
-
- 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_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.
- delegate - Variable in class okhttp3.ConnectionPool
-
- delegate - Variable in class okhttp3.ResponseBody.BomAwareReader
-
- 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(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
.
- 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.Http1ExchangeCodec
-
Sets the delegate of timeout
to Timeout.NONE
and resets its underlying timeout
to the default configuration.
- detachWithViolence() - Method in class okhttp3.internal.connection.Exchange
-
Revoke this exchange's access to streams.
- 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.ExchangeCodec
-
The timeout to use while discarding a stream of input data.
- 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
-
- DNS_MESSAGE - Static variable in class okhttp3.dnsoverhttps.DnsOverHttps
-
- dnsEnd(Call, String, List<InetAddress>) - Method in class okhttp3.EventListener
-
Invoked immediately after a DNS lookup.
- dnsEnd(Call, String, List<InetAddress>) - Method in class okhttp3.logging.LoggingEventListener
-
- dnsHostname - Variable in class okhttp3.dnsoverhttps.BootstrapDns
-
- DnsOverHttps - Class in okhttp3.dnsoverhttps
-
DNS over HTTPS implementation.
- DnsOverHttps(DnsOverHttps.Builder) - Constructor for class okhttp3.dnsoverhttps.DnsOverHttps
-
- DnsOverHttps.Builder - Class in okhttp3.dnsoverhttps
-
- DnsRecordCodec - Class in okhttp3.dnsoverhttps
-
Trivial Dns Encoder/Decoder, basically ripped from Netty full implementation.
- DnsRecordCodec() - Constructor for class okhttp3.dnsoverhttps.DnsRecordCodec
-
- dnsServers - Variable in class okhttp3.dnsoverhttps.BootstrapDns
-
- dnsStart(Call, String) - Method in class okhttp3.EventListener
-
Invoked just prior to a DNS lookup.
- dnsStart(Call, String) - Method in class okhttp3.logging.LoggingEventListener
-
- 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
-
- duplex - Variable in class okhttp3.internal.connection.Exchange
-
- duration(long, TimeUnit) - Method in class okhttp3.tls.HeldCertificate.Builder
-
Sets the certificate to be valid immediately and until the specified duration has elapsed.
- 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
-
- ecdsa256() - Method in class okhttp3.tls.HeldCertificate.Builder
-
Configure the certificate to generate a 256-bit ECDSA key, which provides about 128 bits of
security.
- 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_HEADERS - 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
-
- encodeBase64Lines(StringBuilder, ByteString) - Method in class okhttp3.tls.HeldCertificate
-
- 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
-
- encodeQuery(String, int) - Static method in class okhttp3.dnsoverhttps.DnsRecordCodec
-
- ENCODING - Static variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
- end - Variable in class okhttp3.internal.tls.DistinguishedNameParser
-
- 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.
- enqueueTrailers(Headers) - Method in class okhttp3.internal.http2.Http2Stream
-
- 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
-
- 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
-
- errorException - Variable in class okhttp3.internal.http2.Http2Stream
-
The exception that explains errorCode
.
- 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.
- EVENT - Static variable in class okhttp3.internal.sse.ServerSentEventReader
-
- EventListener - Class in okhttp3
-
Listener for metrics events.
- EventListener() - Constructor for class okhttp3.EventListener
-
- eventListener - Variable in class okhttp3.internal.connection.Exchange
-
- eventListener - Variable in class okhttp3.internal.connection.ExchangeFinder
-
- eventListener - Variable in class okhttp3.internal.connection.RouteSelector
-
- eventListener - Variable in class okhttp3.internal.connection.Transmitter
-
- eventListener(EventListener) - Method in class okhttp3.OkHttpClient.Builder
-
Configure a single client scoped listener that will receive all analytic events
for this client.
- EventListener.Factory - Interface in okhttp3
-
- 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
-
- EventSource - Interface in okhttp3.sse
-
- EventSource.Factory - Interface in okhttp3.sse
-
- EventSourceListener - Class in okhttp3.sse
-
- EventSourceListener() - Constructor for class okhttp3.sse.EventSourceListener
-
- EventSources - Class in okhttp3.sse
-
- EventSources() - Constructor for class okhttp3.sse.EventSources
-
- EverythingIsNonNull - Annotation Type in okhttp3.internal.annotations
-
Extends ParametersAreNonnullByDefault
to also apply to Method results and fields.
- 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.
- evictAll() - Method in class okhttp3.internal.connection.RealConnectionPool
-
- 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
-
- Exchange - Class in okhttp3.internal.connection
-
Transmits a single HTTP request and a response pair.
- Exchange(Transmitter, Call, EventListener, ExchangeFinder, ExchangeCodec) - Constructor for class okhttp3.internal.connection.Exchange
-
- exchange - Variable in class okhttp3.internal.connection.Transmitter
-
- exchange - Variable in class okhttp3.internal.http.RealInterceptorChain
-
- exchange() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- exchange(Response) - Method in class okhttp3.internal.Internal
-
- exchange - Variable in class okhttp3.Response.Builder
-
- exchange - Variable in class okhttp3.Response
-
- Exchange.RequestBodySink - Class in okhttp3.internal.connection
-
A request body that fires events when it completes.
- Exchange.ResponseBodySource - Class in okhttp3.internal.connection
-
A response body that fires events when it completes.
- ExchangeCodec - Interface in okhttp3.internal.http
-
Encodes HTTP requests and decodes HTTP responses.
- exchangeDoneDueToException() - Method in class okhttp3.internal.connection.Transmitter
-
- ExchangeFinder - Class in okhttp3.internal.connection
-
Attempts to find the connections for a sequence of exchanges.
- ExchangeFinder(Transmitter, RealConnectionPool, Address, Call, EventListener) - Constructor for class okhttp3.internal.connection.ExchangeFinder
-
- exchangeFinder - Variable in class okhttp3.internal.connection.Transmitter
-
- exchangeMessageDone(Exchange, boolean, boolean, IOException) - Method in class okhttp3.internal.connection.Transmitter
-
Releases resources held with the request or response of exchange
.
- exchangeRequestDone - Variable in class okhttp3.internal.connection.Transmitter
-
- exchangeResponseDone - Variable in class okhttp3.internal.connection.Transmitter
-
- 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.RealCall
-
- executeOn(ExecutorService) - Method in class okhttp3.RealCall.AsyncCall
-
Attempt to enqueue this async call on executorService
.
- executeRequests(String, List<Call>, List<InetAddress>, List<Exception>) - Method in class okhttp3.dnsoverhttps.DnsOverHttps
-
- executor - Variable in class okhttp3.internal.cache.DiskLruCache
-
Used to run 'cleanupRunnable' for journal rebuilds.
- executor - Static variable in class okhttp3.internal.connection.RealConnectionPool
-
Background threads are used to cleanup expired connections.
- 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.
- exitAndThrowIfTimedOut() - Method in class okhttp3.internal.http2.Http2Stream.StreamTimeout
-
- expires - Variable in class okhttp3.internal.cache.CacheStrategy.Factory
-
The expiration date of the cached response, if known.
- expiresAt - Variable in class okhttp3.Cookie.Builder
-
- expiresAt(long) - Method in class okhttp3.Cookie.Builder
-
- expiresAt - Variable in class okhttp3.Cookie
-
- expiresAt() - Method in class okhttp3.Cookie
-
Returns the time that this cookie expires, in the same format as System.currentTimeMillis()
.
- factory(EventListener) - Static method in class okhttp3.EventListener
-
- Factory(long, Request, Response) - Constructor for class okhttp3.internal.cache.CacheStrategy.Factory
-
- Factory() - Constructor for class okhttp3.logging.LoggingEventListener.Factory
-
- Factory(HttpLoggingInterceptor.Logger) - Constructor for class okhttp3.logging.LoggingEventListener.Factory
-
- failConnection(IOException) - 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
-
- 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
-
- 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.
- 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.
- find(OkHttpClient, Interceptor.Chain, boolean) - Method in class okhttp3.internal.connection.ExchangeFinder
-
- 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.ExchangeFinder
-
Returns a connection to host a new stream.
- finder - Variable in class okhttp3.internal.connection.Exchange
-
- findExistingCallWithHost(String) - Method in class okhttp3.Dispatcher
-
- findHealthyConnection(int, int, int, int, boolean, boolean) - Method in class okhttp3.internal.connection.ExchangeFinder
-
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) - 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 class okhttp3.internal.connection.Exchange
-
- finishRequest() - Method in interface okhttp3.internal.http.ExchangeCodec
-
Flush the request to the underlying socket and signal no more bytes will be transmitted.
- finishRequest() - Method in class okhttp3.internal.http1.Http1ExchangeCodec
-
- finishRequest() - Method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- firstException - Variable in exception okhttp3.internal.connection.RouteException
-
- FixedLengthSource(long) - Constructor for class okhttp3.internal.http1.Http1ExchangeCodec.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.connection.Exchange.RequestBodySink
-
- flush() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSink
-
- flush() - Method in class okhttp3.internal.http1.Http1ExchangeCodec.KnownLengthSink
-
- 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 class okhttp3.internal.connection.Exchange
-
- flushRequest() - Method in interface okhttp3.internal.http.ExchangeCodec
-
Flush the request to the underlying socket.
- flushRequest() - Method in class okhttp3.internal.http1.Http1ExchangeCodec
-
- flushRequest() - Method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- 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.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
-
- generateKeyPair() - Method in class okhttp3.tls.HeldCertificate.Builder
-
- get(Request) - Method in class okhttp3.Cache
-
- 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(String) - Static method in class okhttp3.HttpUrl
-
Returns a new HttpUrl
representing url
.
- 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() - 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 class okhttp3.MediaType
-
Returns a media type for string
.
- 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
-
- getAndResetHeaderList() - Method in class okhttp3.internal.http2.Hpack.Reader
-
- getByte(int) - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- getCacheOnlyResponse(Request) - Method in class okhttp3.dnsoverhttps.DnsOverHttps
-
- getCandidate() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns a strategy to use assuming the request can use the network.
- getConnection() - Method in class okhttp3.internal.http2.Http2Stream
-
- getConnectToInetAddress(Proxy, HttpUrl) - Method in class okhttp3.JavaNetAuthenticator
-
- getDate(String) - Method in class okhttp3.Headers
-
Returns the last value corresponding to the specified field parsed as an HTTP date, or null if
either the field is absent or cannot be parsed as a date.
- getDirectory() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the directory where this cache stores its data.
- getEffectiveTldPlusOne(String) - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
Returns the effective top-level domain plus one (eTLD+1) by referencing the public suffix list.
- 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.
- getEscaped() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- getFirstConnectException() - Method in exception okhttp3.internal.connection.RouteException
-
- getHeaderTableSize() - Method in class okhttp3.internal.http2.Settings
-
Returns -1 if unset.
- getHostString(InetSocketAddress) - Static method in class okhttp3.internal.connection.RouteSelector
-
Obtain a "host" from an InetSocketAddress
.
- getId() - Method in class okhttp3.internal.http2.Http2Stream
-
- getInitialWindowSize() - Method in class okhttp3.internal.http2.Settings
-
- getInstant(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.
- getLastConnectException() - Method in exception okhttp3.internal.connection.RouteException
-
- getLength(int) - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns the byte length of the value for index
.
- getLevel() - Method in class okhttp3.logging.HttpLoggingInterceptor
-
- 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.Jdk8WithJettyBootPlatform
-
- getName(int) - Method in class okhttp3.internal.http2.Hpack.Reader
-
- getPrefix() - Method in class okhttp3.internal.platform.Platform
-
Prefix used on custom headers.
- getProtocolMethod - Variable in class okhttp3.internal.platform.Jdk9Platform
-
- getResponseWithInterceptorChain() - Method in class okhttp3.RealCall
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Jdk8WithJettyBootPlatform
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Jdk9Platform
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
Returns the negotiated protocol, or null if no protocol was negotiated.
- 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
-
- 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
-
- getSystemProperty(String, String) - Static method in class okhttp3.internal.Util
-
Returns the system property, or defaultValue if the system property is null or
cannot be read (e.g.
- getUTF8() - Method in class okhttp3.internal.tls.DistinguishedNameParser
-
- goAway(int, ErrorCode, ByteString) - Method in class okhttp3.internal.http2.Http2Connection.ReaderRunnable
-
- goAway(int, ErrorCode, ByteString) - Method in interface okhttp3.internal.http2.Http2Reader.Handler
-
The peer tells us to stop creating streams.
- goAway(int, ErrorCode, byte[]) - Method in class okhttp3.internal.http2.Http2Writer
-
Tell the peer to stop creating streams and that we last processed lastGoodStreamId
, or
zero if no streams were processed.
- handshake - Variable in class okhttp3.Cache.Entry
-
- handshake() - Method in interface okhttp3.Connection
-
Returns the TLS handshake used to establish this connection, or null if the connection is not
HTTPS.
- Handshake - Class in okhttp3
-
A record of a TLS handshake.
- Handshake(TlsVersion, CipherSuite, List<Certificate>, List<Certificate>) - Constructor for class okhttp3.Handshake
-
- handshake - Variable in class okhttp3.internal.connection.RealConnection
-
- handshake() - Method in class okhttp3.internal.connection.RealConnection
-
- handshake - 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.
- HandshakeCertificates - Class in okhttp3.tls
-
Certificates to identify which peers to trust and also to earn the trust of those peers in kind.
- HandshakeCertificates(X509KeyManager, X509TrustManager) - Constructor for class okhttp3.tls.HandshakeCertificates
-
- HandshakeCertificates.Builder - Class in okhttp3.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
-
- hasExchange() - Method in class okhttp3.internal.connection.Transmitter
-
- hash - Variable in class okhttp3.CertificatePinner.Pin
-
- hashAlgorithm - Variable in class okhttp3.CertificatePinner.Pin
-
Either sha1/
or sha256/
.
- hashCode() - Method in class okhttp3.Address
-
- hashCode() - Method in class okhttp3.CertificatePinner
-
- hashCode() - Method in class okhttp3.CertificatePinner.Pin
-
- hashCode() - Method in class okhttp3.Challenge
-
- hashCode() - Method in class okhttp3.ConnectionSpec
-
- hashCode() - Method in class okhttp3.Cookie
-
- hashCode() - Method in class okhttp3.Handshake
-
- hashCode() - Method in class okhttp3.Headers
-
- hashCode() - Method in class okhttp3.HttpUrl
-
- hashCode() - Method in class okhttp3.internal.http2.Header
-
- hashCode() - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
- hashCode() - Method in class okhttp3.internal.tls.BasicTrustRootIndex
-
- hashCode() - Method in class okhttp3.MediaType
-
- hashCode() - Method in class okhttp3.Route
-
- hasJournalErrors - Variable in class okhttp3.internal.cache.DiskLruCache
-
- hasMoreChunks - Variable in class okhttp3.internal.http1.Http1ExchangeCodec.ChunkedSource
-
- 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.
- hasRouteToTry() - Method in class okhttp3.internal.connection.ExchangeFinder
-
Returns true if a current route is still good or if there are routes we haven't tried yet.
- hasStreamFailure - Variable in class okhttp3.internal.connection.ExchangeFinder
-
- hasStreamFailure() - Method in class okhttp3.internal.connection.ExchangeFinder
-
Returns true if there is a failure that retrying might fix.
- 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.Http1ExchangeCodec
-
- 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.Http1ExchangeCodec
-
- 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(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
-
- headersQueue - Variable in class okhttp3.internal.http2.Http2Stream
-
- headersToRedact - Variable in class okhttp3.logging.HttpLoggingInterceptor
-
- 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
-
- heldCertificate - Variable in class okhttp3.tls.HandshakeCertificates.Builder
-
- heldCertificate(HeldCertificate, X509Certificate...) - Method in class okhttp3.tls.HandshakeCertificates.Builder
-
Configure the certificate chain to use when being authenticated.
- HeldCertificate - Class in okhttp3.tls
-
A certificate and its private key.
- HeldCertificate(KeyPair, X509Certificate) - Constructor for class okhttp3.tls.HeldCertificate
-
- HeldCertificate.Builder - Class in okhttp3.tls
-
Build a held certificate with reasonable defaults.
- 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.Http2ExchangeCodec
-
- host() - Method in class okhttp3.RealCall.AsyncCall
-
- hostHeader(HttpUrl, boolean) - Static method in class okhttp3.internal.Util
-
- 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
-
- Http1ExchangeCodec - Class in okhttp3.internal.http1
-
A socket connection that can be used to send HTTP/1.1 messages.
- Http1ExchangeCodec(OkHttpClient, RealConnection, BufferedSource, BufferedSink) - Constructor for class okhttp3.internal.http1.Http1ExchangeCodec
-
- Http1ExchangeCodec.AbstractSource - Class in okhttp3.internal.http1
-
- Http1ExchangeCodec.ChunkedSink - Class in okhttp3.internal.http1
-
An HTTP body with alternating chunk sizes and chunk bodies.
- Http1ExchangeCodec.ChunkedSource - Class in okhttp3.internal.http1
-
An HTTP body with alternating chunk sizes and chunk bodies.
- Http1ExchangeCodec.FixedLengthSource - Class in okhttp3.internal.http1
-
An HTTP body with a fixed length specified in advance.
- Http1ExchangeCodec.KnownLengthSink - Class in okhttp3.internal.http1
-
An HTTP request body.
- Http1ExchangeCodec.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
-
- 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.
- Http2ExchangeCodec - Class in okhttp3.internal.http2
-
Encode requests and responses using HTTP/2 frames.
- Http2ExchangeCodec(OkHttpClient, RealConnection, Interceptor.Chain, Http2Connection) - Constructor for class okhttp3.internal.http2.Http2ExchangeCodec
-
- http2HeadersList(Request) - Static method in class okhttp3.internal.http2.Http2ExchangeCodec
-
- 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, Headers) - Constructor for class okhttp3.internal.http2.Http2Stream
-
- Http2Stream.FramingSink - Class in okhttp3.internal.http2
-
A sink that writes outgoing data frames of a stream.
- Http2Stream.FramingSource - Class in okhttp3.internal.http2
-
A source that reads the incoming data frames of a stream.
- Http2Stream.StreamTimeout - Class in okhttp3.internal.http2
-
- Http2Writer - Class in okhttp3.internal.http2
-
Writes HTTP/2 transport frames.
- Http2Writer(BufferedSink, boolean) - Constructor for class okhttp3.internal.http2.Http2Writer
-
- HTTP_2_SKIPPED_REQUEST_HEADERS - Static variable in class okhttp3.internal.http2.Http2ExchangeCodec
-
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.Http2ExchangeCodec
-
- 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
-
- HttpDate - Class in okhttp3.internal.http
-
Best-effort parser for HTTP dates.
- HttpDate() - Constructor for class okhttp3.internal.http.HttpDate
-
- 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.
- 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
-
- 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
-