- abort() - Method in interface okhttp3.internal.cache.CacheRequest
-
- abort() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Aborts this edit.
- abortUnlessCommitted() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
- acceptHeader(String) - Static method in class okhttp3.internal.ws.WebSocketProtocol
-
- access_token - Variable in class okhttp3.slack.OAuthSession
-
- AccessHeaders - Class in okhttp3.recipes
-
- AccessHeaders() - Constructor for class okhttp3.recipes.AccessHeaders
-
- acquire(RealConnection) - Method in class okhttp3.internal.connection.StreamAllocation
-
Use this allocation to hold connection.
- add(String, String...) - Method in class okhttp3.CertificatePinner.Builder
-
Pins certificates for pattern.
- add(String, String) - Method in class okhttp3.FormBody.Builder
-
- add(String) - Method in class okhttp3.Headers.Builder
-
Add an header line containing a field name, a literal colon, and a value.
- add(String, String) - Method in class okhttp3.Headers.Builder
-
Add a field with the specified value.
- 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) - Method in class okhttp3.mockwebserver.MockResponse
-
Adds header as an HTTP header.
- addHeader(String, Object) - Method in class okhttp3.mockwebserver.MockResponse
-
Adds a new header with the name and value.
- 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.
- addHeaderLenient(String, Object) - Method in class okhttp3.mockwebserver.MockResponse
-
Adds a new header with the name and value.
- addInterceptor(Interceptor) - Method in class okhttp3.OkHttpClient.Builder
-
- 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 /).
- addProxy(Proxy) - Method in class okhttp3.FakeProxySelector
-
- addQueryParameter(String, String) - Method in class okhttp3.HttpUrl.Builder
-
Encodes the query parameter using UTF-8 and adds it to this URL's query string.
- addRequestProperty(String, String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- Address - Class in okhttp3
-
A specification for a connection to an origin server.
- Address(String, int, Dns, SocketFactory, SSLSocketFactory, HostnameVerifier, CertificatePinner, Authenticator, Proxy, List<Protocol>, List<ConnectionSpec>, ProxySelector) - Constructor for class okhttp3.Address
-
- address - Variable in class okhttp3.internal.connection.StreamAllocation
-
- address() - Method in class okhttp3.Route
-
- addTrustedCertificate(X509Certificate) - Method in class okhttp3.internal.tls.SslClient.Builder
-
Add a certificate authority that this client trusts.
- after() - Method in class okhttp3.mockwebserver.MockWebServer
-
- afterHandshake(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
- allEnabledCipherSuites() - Method in class okhttp3.ConnectionSpec.Builder
-
- allEnabledTlsVersions() - Method in class okhttp3.ConnectionSpec.Builder
-
- allocate(int) - Method in class okhttp3.FakeDns
-
Allocates and returns count fake addresses like [255.0.0.100, 255.0.0.101].
- allocationLimit - Variable in class okhttp3.internal.connection.RealConnection
-
The maximum number of concurrent streams that can be carried by this connection.
- allocations - Variable in class okhttp3.internal.connection.RealConnection
-
Current streams carried by this connection.
- allowInsecure - Variable in class okhttp3.curl.Main
-
- allSubjectAltNames(X509Certificate) - Static method in class okhttp3.internal.tls.OkHostnameVerifier
-
- alpnProtocolNames(List<Protocol>) - Static method in class okhttp3.internal.platform.Platform
-
- ALTERNATIVE - Static variable in class okhttp3.MultipartBody
-
The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the
semantics are different.
- AndroidInternal - Class in okhttp3
-
Back doors to enable the use of OkHttp within the Android platform libraries.
- AndroidShimResponseCache - Class in okhttp3
-
A class provided for use by Android so that it can continue supporting a
ResponseCache
with stats.
- appendingSink(File) - Method in interface okhttp3.internal.io.FileSystem
-
Writes to file, appending if data is already present.
- appendingSink(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- apply(ConnectionSpec, SSLSocket, boolean) - Method in class okhttp3.internal.Internal
-
- apply(Statement, Description) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- assertRequests(String...) - Method in class okhttp3.FakeDns
-
- assertResponseCookies(String...) - Method in class okhttp3.RecordingCookieJar
-
- AsynchronousGet - Class in okhttp3.recipes
-
- AsynchronousGet() - Constructor for class okhttp3.recipes.AsynchronousGet
-
- 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
-
- Authenticate - Class in okhttp3.recipes
-
- Authenticate() - Constructor for class okhttp3.recipes.Authenticate
-
- Authenticator - Interface in okhttp3
-
Responds to an authentication challenge from either a remote web server or a proxy server.
- authenticator() - Method in class okhttp3.OkHttpClient
-
- authenticator(Authenticator) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the authenticator used to respond to challenges from origin servers.
- authorizeUrl(String, HttpUrl, ByteString, String) - Method in class okhttp3.slack.SlackApi
-
See https://api.slack.com/docs/oauth.
- AutobahnTester - Class in okhttp3
-
- AutobahnTester() - Constructor for class okhttp3.AutobahnTester
-
- awaitAccessToken(Timeout) - Method in class okhttp3.slack.SlackClient
-
Waits for an OAuth session for this client to be set.
- ca(int) - Method in class okhttp3.internal.tls.HeldCertificate.Builder
-
Set this certificate to be a certificate authority, with up to maxIntermediateCas
intermediate certificate authorities beneath it.
- Cache - Class in okhttp3
-
Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
bandwidth.
- Cache(File, long) - Constructor for class okhttp3.Cache
-
- cache(Cache) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the response cache to be used to read and write cached responses.
- cache() - Method in class okhttp3.OkHttpClient
-
- CacheAdapter - Class in okhttp3.internal.huc
-
- CacheAdapter(ResponseCache) - Constructor for class okhttp3.internal.huc.CacheAdapter
-
- CacheControl - Class in okhttp3
-
A Cache-Control header with cache directives from a server or client.
- cacheControl(CacheControl) - Method in class okhttp3.Request.Builder
-
Sets this request's Cache-Control header, replacing any cache control headers already
present.
- cacheControl() - Method in class okhttp3.Request
-
Returns the cache control directives for this response.
- cacheControl() - Method in class okhttp3.Response
-
Returns the cache control directives for this response.
- CacheControl.Builder - Class in okhttp3
-
Builds a Cache-Control request header.
- CacheInterceptor - Class in okhttp3.internal.cache
-
Serves requests from the cache and writes responses to the cache.
- CacheInterceptor(InternalCache) - Constructor for class okhttp3.internal.cache.CacheInterceptor
-
- CacheRequest - Interface in okhttp3.internal.cache
-
- cacheResponse - Variable in class okhttp3.internal.cache.CacheStrategy
-
The cached response to return or validate; or null if this call doesn't use a cache.
- CacheResponse - Class in okhttp3.recipes
-
- CacheResponse(File) - Constructor for class okhttp3.recipes.CacheResponse
-
- cacheResponse(Response) - Method in class okhttp3.Response.Builder
-
- cacheResponse() - Method in class okhttp3.Response
-
Returns the raw response received from the cache.
- CacheStrategy - Class in okhttp3.internal.cache
-
Given a request and cached response, this figures out whether to use the network, the cache, or
both.
- CacheStrategy.Factory - Class in okhttp3.internal.cache
-
- Call - Interface in okhttp3
-
A call is a request that has been prepared for execution.
- Call.Factory - Interface in okhttp3
-
- Callback - Interface in okhttp3
-
- calls - Variable in class okhttp3.RecordingHostnameVerifier
-
- CallServerInterceptor - Class in okhttp3.internal.http
-
This is the last interceptor in the chain.
- CallServerInterceptor(boolean) - Constructor for class okhttp3.internal.http.CallServerInterceptor
-
- callStackTrace - Variable in class okhttp3.internal.connection.StreamAllocation.StreamAllocationReference
-
Captures the stack trace at the time the Call is executed or enqueued.
- cancel() - Method in interface okhttp3.Call
-
Cancels the request, if possible.
- cancel() - Method in class okhttp3.internal.connection.RealConnection
-
- cancel() - Method in class okhttp3.internal.connection.StreamAllocation
-
- cancel() - Method in interface okhttp3.internal.http.HttpCodec
-
Cancel this stream.
- cancel() - Method in class okhttp3.internal.http.RetryAndFollowUpInterceptor
-
Immediately closes the socket connection if it's currently held.
- cancel() - Method in class okhttp3.internal.http1.Http1Codec
-
- cancel() - Method in class okhttp3.internal.http2.Http2Codec
-
- CANCEL - Static variable in interface okhttp3.internal.http2.PushObserver
-
- cancel() - Method in class okhttp3.internal.ws.RealWebSocket
-
- cancel() - Method in interface okhttp3.WebSocket
-
Immediately and violently release resources held by this web socket, discarding any enqueued
messages.
- cancelAll() - Method in class okhttp3.Dispatcher
-
Cancel all calls currently enqueued or executing.
- CancelCall - Class in okhttp3.recipes
-
- CancelCall() - Constructor for class okhttp3.recipes.CancelCall
-
- certificate - Variable in class okhttp3.internal.tls.HeldCertificate
-
- certificateChain(HeldCertificate, HeldCertificate...) - Method in class okhttp3.internal.tls.SslClient.Builder
-
Configure the certificate chain to use when serving HTTPS responses.
- certificateChain(KeyPair, X509Certificate, X509Certificate...) - Method in class okhttp3.internal.tls.SslClient.Builder
-
- CertificateChainCleaner - Class in okhttp3.internal.tls
-
Computes the effective certificate chain from the raw array returned by Java's built in TLS APIs.
- CertificateChainCleaner() - Constructor for class okhttp3.internal.tls.CertificateChainCleaner
-
- certificatePinner() - Method in class okhttp3.Address
-
Returns this address's certificate pinner, or null if this is not an HTTPS address.
- CertificatePinner - Class in okhttp3
-
Constrains which certificates are trusted.
- certificatePinner(CertificatePinner) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the certificate pinner that constrains which certificates are trusted.
- certificatePinner() - Method in class okhttp3.OkHttpClient
-
- CertificatePinner.Builder - Class in okhttp3
-
Builds a configured certificate pinner.
- CertificatePinning - Class in okhttp3.recipes
-
- CertificatePinning() - Constructor for class okhttp3.recipes.CertificatePinning
-
- Challenge - Class in okhttp3
-
An RFC 2617 challenge.
- Challenge(String, String) - Constructor for class okhttp3.Challenge
-
- challenges() - Method in class okhttp3.Response
-
Returns the authorization challenges appropriate for this response's code.
- charset() - Method in class okhttp3.MediaType
-
Returns the charset of this media type, or null if this media type doesn't specify a charset.
- charset(Charset) - Method in class okhttp3.MediaType
-
Returns the charset of this media type, or defaultValue if either this media type
doesn't specify a charset, of it its charset is unsupported by the current runtime.
- charStream() - Method in class okhttp3.ResponseBody
-
Returns the response as a character stream decoded with the charset of the Content-Type header.
- check(String, List<Certificate>) - Method in class okhttp3.CertificatePinner
-
Confirms that at least one of the certificates pinned for hostname is in peerCertificates.
- check(String, Certificate...) - Method in class okhttp3.CertificatePinner
-
- CheckHandshake - Class in okhttp3.recipes
-
- CheckHandshake() - Constructor for class okhttp3.recipes.CheckHandshake
-
- checkOffsetAndCount(long, long, long) - Static method in class okhttp3.internal.Util
-
- checkURLPermitted(URL) - Method in interface okhttp3.internal.URLFilter
-
Deprecated.
Check whether request to the provided URL is permitted to be issued.
- CipherSuite - Class in okhttp3
-
- cipherSuite() - Method in class okhttp3.Handshake
-
Returns the cipher suite used for the connection.
- cipherSuites(CipherSuite...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites(String...) - Method in class okhttp3.ConnectionSpec.Builder
-
- cipherSuites() - Method in class okhttp3.ConnectionSpec
-
Returns the cipher suites to use for a connection.
- clean(List<Certificate>, String) - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
Returns a cleaned chain for chain.
- clean(List<Certificate>, String) - Method in class okhttp3.internal.tls.CertificateChainCleaner
-
- clear(String) - Method in class okhttp3.FakeDns
-
Clears the results for hostname.
- clearHeaders() - Method in class okhttp3.mockwebserver.MockResponse
-
Removes all HTTP headers including any "Content-Length" and "Transfer-encoding" headers that
were added by default.
- CLEARTEXT - Static variable in class okhttp3.ConnectionSpec
-
Unencrypted, unauthenticated connections for http: URLs.
- client - Variable in class okhttp3.internal.connection.ConnectInterceptor
-
- client - Variable in class okhttp3.internal.ws.RealWebSocket.Streams
-
- client() - Method in class okhttp3.OkUrlFactory
-
Deprecated.
- clientId - Variable in class okhttp3.slack.SlackApi
-
- clientSecret - Variable in class okhttp3.slack.SlackApi
-
- 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.mockwebserver.MockResponse
-
- clone() - Method in class okhttp3.OkUrlFactory
-
Deprecated.
Returns a copy of this stream handler factory that includes a shallow copy of the internal
HTTP client.
- close() - Method in class okhttp3.AndroidShimResponseCache
-
Uninstalls the cache and releases any active resources.
- close() - Method in class okhttp3.Cache
-
- close() - Method in class okhttp3.internal.cache.DiskLruCache
-
Closes this cache.
- close() - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
- close() - Method in class okhttp3.internal.http2.Http2Connection
-
Closes this connection.
- close(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Abnormally terminate this stream.
- close(int, String) - Method in class okhttp3.internal.ws.RealWebSocket
-
- close() - Method in class okhttp3.mockwebserver.MockWebServer
-
- close() - Method in class okhttp3.Response
-
Closes the response body.
- close() - Method in class okhttp3.ResponseBody
-
- close() - Method in class okhttp3.slack.OAuthSessionFactory
-
- close() - Method in class okhttp3.slack.RtmSession
-
- close(int, String) - Method in interface okhttp3.WebSocket
-
Attempts to initiate a graceful shutdown of this web socket.
- closeLater(ErrorCode) - Method in class okhttp3.internal.http2.Http2Stream
-
Abnormally terminate this stream.
- closeQuietly(Closeable) - Static method in class okhttp3.internal.Util
-
Closes closeable, ignoring any checked exceptions.
- closeQuietly(Socket) - Static method in class okhttp3.internal.Util
-
Closes socket, ignoring any checked exceptions.
- closeQuietly(ServerSocket) - Static method in class okhttp3.internal.Util
-
Closes serverSocket, ignoring any checked exceptions.
- code - Variable in class okhttp3.internal.http.StatusLine
-
- code(Response.Builder) - Method in class okhttp3.internal.Internal
-
- code(int) - Method in class okhttp3.Response.Builder
-
- code() - Method in class okhttp3.Response
-
Returns the HTTP status code.
- codec() - Method in class okhttp3.internal.connection.StreamAllocation
-
- commit() - Method in class okhttp3.internal.cache.DiskLruCache.Editor
-
Commits this edit so it is visible to readers.
- commonName(String) - Method in class okhttp3.internal.tls.HeldCertificate.Builder
-
Set this certificate's name.
- COMPATIBLE_TLS - Static variable in class okhttp3.ConnectionSpec
-
A backwards-compatible fallback connection for interop with obsolete servers.
- concat(String[], String) - Static method in class okhttp3.internal.Util
-
- configureSecureSocket(SSLSocket) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
- ConfigureTimeouts - Class in okhttp3.recipes
-
- ConfigureTimeouts() - Constructor for class okhttp3.recipes.ConfigureTimeouts
-
- configureTlsExtensions(SSLSocket, String, List<Protocol>) - Method in class okhttp3.internal.platform.Platform
-
Configure TLS extensions on sslSocket for route.
- connect(int, int, int, boolean) - Method in class okhttp3.internal.connection.RealConnection
-
- connect() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- connect(OkHttpClient) - Method in class okhttp3.internal.ws.RealWebSocket
-
- connected(Route) - Method in class okhttp3.internal.connection.RouteDatabase
-
Records success connecting to route.
- connectFailed(URI, SocketAddress, IOException) - Method in class okhttp3.FakeProxySelector
-
- connectFailed(Route, IOException) - Method in class okhttp3.internal.connection.RouteSelector
-
Clients should invoke this method when they encounter a connectivity failure on a connection
returned by this route selector.
- ConnectInterceptor - Class in okhttp3.internal.connection
-
Opens a connection to the target server and proceeds to the next interceptor.
- ConnectInterceptor(OkHttpClient) - Constructor for class okhttp3.internal.connection.ConnectInterceptor
-
- Connection - Interface in okhttp3
-
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
- connection() - Method in interface okhttp3.Interceptor.Chain
-
Returns the connection the request will be executed on.
- connection() - Method in class okhttp3.internal.connection.StreamAllocation
-
- connection() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- connectionBecameIdle(ConnectionPool, RealConnection) - Method in class okhttp3.internal.Internal
-
- connectionCount() - Method in class okhttp3.ConnectionPool
-
Returns total number of connections in the pool.
- connectionFailed(IOException) - Method in class okhttp3.internal.connection.ConnectionSpecSelector
-
Reports a failure to complete a connection.
- ConnectionPool - Class in okhttp3
-
Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
- ConnectionPool() - Constructor for class okhttp3.ConnectionPool
-
Create a new connection pool with tuning parameters appropriate for a single-user application.
- ConnectionPool(int, long, TimeUnit) - Constructor for class okhttp3.ConnectionPool
-
- connectionPool(ConnectionPool) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the connection pool used to recycle HTTP and HTTPS connections.
- connectionPool() - Method in class okhttp3.OkHttpClient
-
- ConnectionShutdownException - Exception in okhttp3.internal.http2
-
Thrown when an HTTP/2 connection is shutdown (either explicitly or if the peer has sent a GOAWAY
frame) and an attempt is made to use the connection.
- ConnectionShutdownException() - Constructor for exception okhttp3.internal.http2.ConnectionShutdownException
-
- ConnectionSpec - Class in okhttp3
-
Specifies configuration for the socket connection that HTTP traffic travels through.
- ConnectionSpec.Builder - Class in okhttp3
-
- connectionSpecs() - Method in class okhttp3.Address
-
- connectionSpecs(List<ConnectionSpec>) - Method in class okhttp3.OkHttpClient.Builder
-
- connectionSpecs() - Method in class okhttp3.OkHttpClient
-
- ConnectionSpecSelector - Class in okhttp3.internal.connection
-
Handles the connection spec fallback strategy: When a secure socket connection fails due to a
handshake / protocol problem the connection may be retried with different protocols.
- ConnectionSpecSelector(List<ConnectionSpec>) - Constructor for class okhttp3.internal.connection.ConnectionSpecSelector
-
- connectSocket(Socket, InetSocketAddress, int) - Method in class okhttp3.internal.platform.Platform
-
- connectTimeout - Variable in class okhttp3.curl.Main
-
- connectTimeout(long, TimeUnit) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the default connect timeout for new connections.
- connectTimeoutMillis() - Method in class okhttp3.OkHttpClient
-
Default connect timeout (in milliseconds).
- contentLength() - Method in class okhttp3.FormBody
-
- contentLength(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
- contentLength(Headers) - Static method in class okhttp3.internal.http.HttpHeaders
-
- contentLength() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentLength() - Method in class okhttp3.MultipartBody
-
- contentLength() - Method in class okhttp3.RequestBody
-
- contentLength() - Method in class okhttp3.ResponseBody
-
- contentType() - Method in class okhttp3.FormBody
-
- contentType() - Method in class okhttp3.internal.http.RealResponseBody
-
- contentType() - Method in class okhttp3.MultipartBody
-
- contentType() - Method in class okhttp3.RequestBody
-
Returns the Content-Type header for this body.
- contentType() - Method in class okhttp3.ResponseBody
-
- Cookie - Class in okhttp3
-
- Cookie.Builder - Class in okhttp3
-
Builds a cookie.
- CookieJar - Interface in okhttp3
-
Provides policy and persistence for HTTP cookies.
- cookieJar(CookieJar) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to
outgoing HTTP requests.
- cookieJar() - Method in class okhttp3.OkHttpClient
-
- Crawler - Class in okhttp3.sample
-
Fetches HTML from a requested URL, follows the links, and repeats.
- Crawler(OkHttpClient) - Constructor for class okhttp3.sample.Crawler
-
- create(File, long) - Static method in class okhttp3.AndroidShimResponseCache
-
- create(FileSystem, File, int, int, long) - Static method in class okhttp3.internal.cache.DiskLruCache
-
Create a cache which will reside in directory.
- create(RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- create(Headers, RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- create(MediaType, String) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content.
- create(MediaType, ByteString) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content.
- create(MediaType, byte[]) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content.
- create(MediaType, byte[], int, int) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits content.
- create(MediaType, File) - Static method in class okhttp3.RequestBody
-
Returns a new request body that transmits the content of file.
- create(MediaType, String) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content.
- create(MediaType, byte[]) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content.
- create(MediaType, long, BufferedSource) - Static method in class okhttp3.ResponseBody
-
Returns a new response body that transmits content.
- createFormData(String, String) - Static method in class okhttp3.MultipartBody.Part
-
- createFormData(String, String, RequestBody) - Static method in class okhttp3.MultipartBody.Part
-
- createJavaCacheRequest(CacheRequest) - Static method in class okhttp3.internal.huc.JavaApiConverter
-
- createJavaCacheResponse(Response) - Static method in class okhttp3.internal.huc.JavaApiConverter
-
- createOkRequest(URI, String, Map<String, List<String>>) - Static method in class okhttp3.internal.huc.JavaApiConverter
-
Creates an OkHttp
Request from the supplied information.
- createOkResponseForCachePut(URI, URLConnection) - Static method in class okhttp3.internal.huc.JavaApiConverter
-
- createRequestBody(Request, long) - Method in interface okhttp3.internal.http.HttpCodec
-
Returns an output stream where the request body can be streamed.
- createRequestBody(Request, long) - Method in class okhttp3.internal.http1.Http1Codec
-
- createRequestBody(Request, long) - Method in class okhttp3.internal.http2.Http2Codec
-
- createURLStreamHandler(String) - Method in class okhttp3.OkUrlFactory
-
Deprecated.
- Credentials - Class in okhttp3
-
Factory for HTTP authorization credentials.
- CustomCipherSuites - Class in okhttp3.recipes
-
- CustomCipherSuites() - Constructor for class okhttp3.recipes.CustomCipherSuites
-
- CustomTrust - Class in okhttp3.recipes
-
- CustomTrust() - Constructor for class okhttp3.recipes.CustomTrust
-
- data - Variable in class okhttp3.curl.Main
-
- deduplicate(ConnectionPool, Address, StreamAllocation) - Method in class okhttp3.internal.Internal
-
- DEFAULT - Static variable in class okhttp3.CertificatePinner
-
- DEFAULT - Static variable in interface okhttp3.logging.HttpLoggingInterceptor.Logger
-
- defaultPort(String) - Static method in class okhttp3.HttpUrl
-
Returns 80 if scheme.equals("http"), 443 if scheme.equals("https") and -1
otherwise.
- delete() - Method in class okhttp3.AndroidShimResponseCache
-
Uninstalls the cache and deletes all of its stored contents.
- delete() - Method in class okhttp3.Cache
-
Closes the cache and deletes all of its stored values.
- delete() - Method in class okhttp3.internal.cache.DiskLruCache
-
Closes the cache and deletes all of its stored values.
- delete(File) - Method in interface okhttp3.internal.io.FileSystem
-
Deletes file if it exists.
- delete(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- delete(RequestBody) - Method in class okhttp3.Request.Builder
-
- delete() - Method in class okhttp3.Request.Builder
-
- deleteContents(File) - Method in interface okhttp3.internal.io.FileSystem
-
Recursively delete the contents of directory.
- deleteContents(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- delimiterOffset(String, int, int, String) - Static method in class okhttp3.internal.Util
-
Returns the index of the first character in input that contains a character in delimiters.
- delimiterOffset(String, int, int, char) - Static method in class okhttp3.internal.Util
-
Returns the index of the first character in input that is delimiter.
- DIGEST - Static variable in class okhttp3.MultipartBody
-
This type is syntactically identical to "multipart/mixed", but the semantics are different.
- directory() - Method in class okhttp3.Cache
-
- discard(Source, int, TimeUnit) - Static method in class okhttp3.internal.Util
-
Attempts to exhaust source, returning true if successful.
- DISCARD_STREAM_TIMEOUT_MILLIS - Static variable in interface okhttp3.internal.http.HttpCodec
-
The timeout to use while discarding a stream of input data.
- disconnect() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- DiskLruCache - Class in okhttp3.internal.cache
-
A cache that uses a bounded amount of space on a filesystem.
- DiskLruCache.Editor - Class in okhttp3.internal.cache
-
Edits the values for an entry.
- DiskLruCache.Snapshot - Class in okhttp3.internal.cache
-
A snapshot of the values for an entry.
- dispatch(RecordedRequest) - Method in class okhttp3.mockwebserver.Dispatcher
-
Returns a response to satisfy request.
- dispatch(RecordedRequest) - Method in class okhttp3.mockwebserver.QueueDispatcher
-
- dispatch(RecordedRequest) - Method in class okhttp3.sample.SampleServer
-
- dispatch(RecordedRequest) - Method in class okhttp3.slack.OAuthSessionFactory
-
When the browser hits the redirect URL, use the provided code to ask Slack for a session.
- 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 - Class in okhttp3.mockwebserver
-
Handler for mock server requests.
- Dispatcher() - Constructor for class okhttp3.mockwebserver.Dispatcher
-
- dispatcher(Dispatcher) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the dispatcher used to set policy and execute asynchronous requests.
- dispatcher() - Method in class okhttp3.OkHttpClient
-
- dns() - Method in class okhttp3.Address
-
Returns the service that will be used to resolve IP addresses for hostnames.
- Dns - Interface in okhttp3
-
A domain name service that resolves IP addresses for host names.
- dns(Dns) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the DNS service used to lookup IP addresses for hostnames.
- dns() - Method in class okhttp3.OkHttpClient
-
- domain(String) - Method in class okhttp3.Cookie.Builder
-
Set the domain pattern for this cookie.
- domain() - Method in class okhttp3.Cookie
-
Returns the cookie's domain.
- domainToAscii(String) - Static method in class okhttp3.internal.Util
-
Performs IDN ToASCII encoding and canonicalize the result to lowercase.
- edit(String) - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns an editor for the entry named key, or null if another edit is in progress.
- edit() - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns an editor for this snapshot's entry, or null if either the entry has changed since
this snapshot was created or if another edit is in progress.
- EMPTY_BYTE_ARRAY - Static variable in class okhttp3.internal.Util
-
- EMPTY_REQUEST - Static variable in class okhttp3.internal.Util
-
- EMPTY_RESPONSE - Static variable in class okhttp3.internal.Util
-
- EMPTY_STRING_ARRAY - Static variable in class okhttp3.internal.Util
-
- encodedFragment(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedFragment() - Method in class okhttp3.HttpUrl
-
Returns this URL's encoded fragment, like "abc" for http://host/#abc.
- encodedName(int) - Method in class okhttp3.FormBody
-
- encodedPassword(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedPassword() - Method in class okhttp3.HttpUrl
-
Returns the password, or an empty string if none is set.
- encodedPath(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedPath() - Method in class okhttp3.HttpUrl
-
Returns the entire path of this URL encoded for use in HTTP resource resolution.
- encodedPathSegments() - Method in class okhttp3.HttpUrl
-
Returns a list of encoded path segments like ["a", "b", "c"] for the URL http://host/a/b/c.
- encodedQuery(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedQuery() - Method in class okhttp3.HttpUrl
-
Returns the query of this URL, encoded for use in HTTP resource resolution.
- encodedUsername(String) - Method in class okhttp3.HttpUrl.Builder
-
- encodedUsername() - Method in class okhttp3.HttpUrl
-
Returns the username, or an empty string if none is set.
- encodedValue(int) - Method in class okhttp3.FormBody
-
- enqueue(Callback) - Method in interface okhttp3.Call
-
Schedules the request to be executed at some point in the future.
- enqueue(MockResponse) - Method in class okhttp3.mockwebserver.MockWebServer
-
Scripts response to be returned to a request made in sequence.
- enqueueRequestCookies(Cookie...) - Method in class okhttp3.RecordingCookieJar
-
- enqueueResponse(MockResponse) - Method in class okhttp3.mockwebserver.QueueDispatcher
-
- ensureResourcesClosed() - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- equal(Object, Object) - Static method in class okhttp3.internal.Util
-
Returns true if two possibly-null objects are equal.
- equals(Object) - Method in class okhttp3.Address
-
- equals(Object) - Method in class okhttp3.CertificatePinner
-
- equals(Object) - Method in class okhttp3.Challenge
-
- equals(Object) - Method in class okhttp3.ConnectionSpec
-
- equals(Object) - Method in class okhttp3.Cookie
-
- equals(Object) - Method in class okhttp3.Handshake
-
- equals(Object) - Method in class okhttp3.Headers
-
Returns true if other is a Headers object with the same headers, with the same
casing, in the same order.
- equals(Object) - Method in class okhttp3.HttpUrl
-
- equals(Object) - Method in class okhttp3.internal.http2.Header
-
- equals(Object) - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
- equals(Object) - Method in class okhttp3.MediaType
-
- equals(Object) - Method in class okhttp3.Route
-
- equalsNonHost(Address, Address) - Method in class okhttp3.internal.Internal
-
- ErrorCode - Enum in okhttp3.internal.http2
-
- errorCode - Variable in exception okhttp3.internal.http2.StreamResetException
-
- 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.
- exchangeCode(String, HttpUrl) - Method in class okhttp3.slack.SlackApi
-
See https://api.slack.com/methods/oauth.access.
- execute(HttpUriRequest) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, ResponseHandler<? extends T>) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpUriRequest, ResponseHandler<? extends T>, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute(HttpHost, HttpRequest, ResponseHandler<? extends T>, HttpContext) - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- execute() - Method in interface okhttp3.Call
-
Invokes the request immediately, and blocks until the response can be processed or is in
error.
- execute() - Method in class okhttp3.internal.NamedRunnable
-
- executorService() - Method in class okhttp3.Dispatcher
-
- exists(File) - Method in interface okhttp3.internal.io.FileSystem
-
Returns true if file exists on the file system.
- exists(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
-
- expiresAt(long) - Method in class okhttp3.Cookie.Builder
-
- expiresAt() - Method in class okhttp3.Cookie
-
- generateKeyPair() - Method in class okhttp3.internal.tls.HeldCertificate.Builder
-
- get(URI, String, Map<String, List<String>>) - Method in class okhttp3.AndroidShimResponseCache
-
- get(SSLSession) - Static method in class okhttp3.Handshake
-
- get(TlsVersion, CipherSuite, List<Certificate>, List<Certificate>) - Static method in class okhttp3.Handshake
-
- get(String) - Method in class okhttp3.Headers.Builder
-
Equivalent to build().get(name), but potentially faster.
- get(String) - Method in class okhttp3.Headers
-
Returns the last value corresponding to the specified field, or null.
- get(URL) - Static method in class okhttp3.HttpUrl
-
Returns an
HttpUrl for
url if its protocol is
http or
https, or
null if it has any other protocol.
- get(URI) - Static method in class okhttp3.HttpUrl
-
- get() - Method in class okhttp3.internal.cache.CacheStrategy.Factory
-
Returns a strategy to satisfy request using the a cached response response.
- get(String) - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns a snapshot of the entry named key, or null if it doesn't exist is not currently
readable.
- get(Request) - Method in interface okhttp3.internal.cache.InternalCache
-
- get(Request, Proxy.Type) - Static method in class okhttp3.internal.http.RequestLine
-
Returns the request status line, like "GET / HTTP/1.1".
- get(Response) - Static method in class okhttp3.internal.http.StatusLine
-
- get(Request) - Method in class okhttp3.internal.huc.CacheAdapter
-
- get(ConnectionPool, Address, StreamAllocation, Route) - Method in class okhttp3.internal.Internal
-
- get() - Static method in class okhttp3.internal.platform.Platform
-
- get() - Static method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
- get(X509TrustManager) - Static method in class okhttp3.internal.tls.CertificateChainCleaner
-
- get(X509Certificate...) - Static method in class okhttp3.internal.tls.CertificateChainCleaner
-
- get(X509TrustManager) - Static method in class okhttp3.internal.tls.TrustRootIndex
-
- get(X509Certificate...) - Static method in class okhttp3.internal.tls.TrustRootIndex
-
- get(String) - Static method in enum okhttp3.Protocol
-
Returns the protocol identified by protocol.
- get() - Method in class okhttp3.Request.Builder
-
- getApplicationBufferSize() - Method in class okhttp3.FakeSSLSession
-
- getBody() - Method in class okhttp3.mockwebserver.MockResponse
-
Returns a copy of the raw HTTP payload.
- getBody() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the body of this POST request.
- getBodyDelay(TimeUnit) - Method in class okhttp3.mockwebserver.MockResponse
-
- getBodySize() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the total size of the body of this POST request (before truncation).
- getCache() - Method in class okhttp3.AndroidShimResponseCache
-
- getCache() - Method in interface okhttp3.OkCacheContainer
-
- getChunkSizes() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the sizes of the chunks of this request's body, or an empty list if the request's body
was empty or unchunked.
- getCipherSuite() - Method in class okhttp3.FakeSSLSession
-
- getConnection() - Method in class okhttp3.internal.http2.Http2Stream
-
- getConnectionManager() - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- getConnectTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getCreationTime() - Method in class okhttp3.FakeSSLSession
-
- getDate(String) - Method in class okhttp3.Headers
-
Returns the last value corresponding to the specified field parsed as an HTTP date, or null if
either the field is absent or cannot be parsed as a date.
- getDelegate() - Method in class okhttp3.internal.huc.CacheAdapter
-
- getDirectory() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the directory where this cache stores its data.
- getEffectiveTldPlusOne(String) - Method in class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-
Returns the effective top-level domain plus one (eTLD+1) by referencing the public suffix list.
- getErrorCode() - Method in class okhttp3.internal.http2.Http2Stream
-
Returns the reason why this stream was closed, or null if it closed normally or has not yet
been closed.
- getErrorStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns an input stream from the server in the case of error such as the requested file (txt,
htm, html) is not found on the remote server.
- GetExample - Class in okhttp3.guide
-
- GetExample() - Constructor for class okhttp3.guide.GetExample
-
- getHeader(String) - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the first header named name, or null if no such header exists.
- getHeaderField(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns the value of the field at position.
- getHeaderField(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
Returns the value of the field corresponding to the fieldName, or null if there is no
such field.
- getHeaderFieldKey(int) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaderFields() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getHeaders() - Method in class okhttp3.mockwebserver.MockResponse
-
Returns the HTTP headers, such as "Content-Length: 0".
- getHeaders() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns all headers.
- getHitCount() - Method in class okhttp3.AndroidShimResponseCache
-
Returns the number of HTTP requests whose response was provided by the cache.
- getHostName() - Method in class okhttp3.mockwebserver.MockWebServer
-
- getHostnameVerifier() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- getHttp2ErrorCode() - Method in class okhttp3.mockwebserver.MockResponse
-
- getHttpUrlChecked(String) - Method in class okhttp3.internal.Internal
-
- getId() - Method in class okhttp3.FakeSSLSession
-
- getId() - Method in class okhttp3.internal.http2.Http2Stream
-
- getInputStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getInstanceFollowRedirects() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getLastAccessedTime() - Method in class okhttp3.FakeSSLSession
-
- getLastConnectException() - Method in exception okhttp3.internal.connection.RouteException
-
- getLength(int) - Method in class okhttp3.internal.cache.DiskLruCache.Snapshot
-
Returns the byte length of the value for index.
- getLevel() - Method in class okhttp3.logging.HttpLoggingInterceptor
-
- getLocalCertificates() - Method in class okhttp3.FakeSSLSession
-
- getLocalPrincipal() - Method in class okhttp3.FakeSSLSession
-
- getMaxRequests() - Method in class okhttp3.Dispatcher
-
- getMaxRequestsPerHost() - Method in class okhttp3.Dispatcher
-
- getMaxSize() - Method in class okhttp3.internal.cache.DiskLruCache
-
Returns the maximum number of bytes that this cache should use to store its data.
- getMethod() - Method in class okhttp3.mockwebserver.RecordedRequest
-
- getNetworkCount() - Method in class okhttp3.AndroidShimResponseCache
-
Returns the number of HTTP requests that required the network to either supply a response or
validate a locally cached response.
- getOutputStream() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getPacketBufferSize() - Method in class okhttp3.FakeSSLSession
-
- getParams() - Method in class okhttp3.apache.OkApacheClient
-
Deprecated.
- getPath() - Method in class okhttp3.mockwebserver.RecordedRequest
-
- getPeerCertificateChain() - Method in class okhttp3.FakeSSLSession
-
- getPeerCertificates() - Method in class okhttp3.FakeSSLSession
-
- getPeerHost() - Method in class okhttp3.FakeSSLSession
-
- getPeerPort() - Method in class okhttp3.FakeSSLSession
-
- getPeerPrincipal() - Method in class okhttp3.FakeSSLSession
-
- getPermission() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getPort() - Method in class okhttp3.mockwebserver.MockWebServer
-
- getPrefix() - Method in class okhttp3.internal.platform.Platform
-
Prefix used on custom headers.
- getProtocol() - Method in class okhttp3.FakeSSLSession
-
- getProtocol() - Method in class okhttp3.internal.http2.Http2Connection
-
The protocol as selected using ALPN.
- getPushPromises() - Method in class okhttp3.mockwebserver.MockResponse
-
Returns the streams the server will push with this response.
- getReadTimeout() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestCount() - Method in class okhttp3.AndroidShimResponseCache
-
Returns the total number of HTTP requests that were made.
- getRequestCount() - Method in class okhttp3.mockwebserver.MockWebServer
-
Returns the number of HTTP requests received thus far by this server.
- getRequestHeaders() - Method in class okhttp3.internal.http2.Http2Stream
-
- getRequestLine() - Method in class okhttp3.mockwebserver.RecordedRequest
-
- getRequestProperties() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestProperty(String) - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getRequestUrl() - Method in class okhttp3.mockwebserver.RecordedRequest
-
- getResponseCode() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getResponseMessage() - Method in class okhttp3.internal.huc.OkHttpURLConnection
-
- getSelectedProtocol(SSLSocket) - Method in class okhttp3.internal.platform.Platform
-
Returns the negotiated protocol, or null if no protocol was negotiated.
- getSequenceNumber() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the index of this request on its HTTP connection.
- getSessionContext() - Method in class okhttp3.FakeSSLSession
-
- getSettings() - Method in class okhttp3.mockwebserver.MockResponse
-
- getSink() - Method in class okhttp3.internal.http2.Http2Stream
-
Returns a sink that can be used to write data to the peer.
- getSocketPolicy() - Method in class okhttp3.mockwebserver.MockResponse
-
- 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.
- getSSLSocketFactory() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- getStackTraceForCloseable(String) - Method in class okhttp3.internal.platform.Platform
-
Returns an object that holds a stack trace created at the moment this method is executed.
- getStatus() - Method in class okhttp3.mockwebserver.MockResponse
-
Returns the HTTP response line, such as "HTTP/1.1 200 OK".
- getThrottleBytesPerPeriod() - Method in class okhttp3.mockwebserver.MockResponse
-
- getThrottlePeriod(TimeUnit) - Method in class okhttp3.mockwebserver.MockResponse
-
- getTlsVersion() - Method in class okhttp3.mockwebserver.RecordedRequest
-
Returns the connection's TLS version or null if the connection doesn't use SSL.
- getUtf8Body() - Method in class okhttp3.mockwebserver.RecordedRequest
-
- getValue(String) - Method in class okhttp3.FakeSSLSession
-
- getValueNames() - Method in class okhttp3.FakeSSLSession
-
- getWebSocketListener() - Method in class okhttp3.mockwebserver.MockResponse
-
- GOOGLE_API_KEY - Static variable in class okhttp3.recipes.RequestBodyCompression
-
The Google API KEY for OkHttp recipes.
- handshake() - Method in interface okhttp3.Connection
-
Returns the TLS handshake used to establish this connection, or null if the connection is not
HTTPS.
- Handshake - Class in okhttp3
-
A record of a TLS handshake.
- handshake() - Method in class okhttp3.internal.connection.RealConnection
-
- handshake() - Method in class okhttp3.internal.huc.OkHttpsURLConnection
-
- handshake(Handshake) - Method in class okhttp3.Response.Builder
-
- handshake() - Method in class okhttp3.Response
-
Returns the TLS handshake of the connection that carried this response, or null if the response
was received without TLS.
- hasBody(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if the response must have a (possibly 0-length) body.
- hashCode() - Method in class okhttp3.Address
-
- hashCode() - Method in class okhttp3.CertificatePinner
-
- hashCode() - Method in class okhttp3.Challenge
-
- hashCode() - Method in class okhttp3.ConnectionSpec
-
- hashCode() - Method in class okhttp3.Cookie
-
- hashCode() - Method in class okhttp3.Handshake
-
- hashCode() - Method in class okhttp3.Headers
-
- hashCode() - Method in class okhttp3.HttpUrl
-
- hashCode() - Method in class okhttp3.internal.http2.Header
-
- hashCode() - Method in class okhttp3.internal.tls.BasicCertificateChainCleaner
-
- hashCode() - Method in class okhttp3.MediaType
-
- hashCode() - Method in class okhttp3.Route
-
- hasMoreRoutes() - Method in class okhttp3.internal.connection.StreamAllocation
-
- hasNext() - Method in class okhttp3.internal.connection.RouteSelector
-
Returns true if there's another route to attempt.
- hasVaryAll(Response) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if a Vary header contains an asterisk.
- hasVaryAll(Headers) - Static method in class okhttp3.internal.http.HttpHeaders
-
Returns true if a Vary header contains an asterisk.
- head() - Method in class okhttp3.Request.Builder
-
- Header - Class in okhttp3.internal.http2
-
HTTP header: the name is an ASCII string, but the value can be UTF-8.
- Header(String, String) - Constructor for class okhttp3.internal.http2.Header
-
- Header(ByteString, String) - Constructor for class okhttp3.internal.http2.Header
-
- Header(ByteString, ByteString) - Constructor for class okhttp3.internal.http2.Header
-
- header(String, String) - Method in class okhttp3.Request.Builder
-
Sets the header named name to value.
- header(String) - Method in class okhttp3.Request
-
- header(String, String) - Method in class okhttp3.Response.Builder
-
Sets the header named name to value.
- header(String) - Method in class okhttp3.Response
-
- header(String, String) - Method in class okhttp3.Response
-
- headers - Variable in class okhttp3.curl.Main
-
- Headers - Class in okhttp3
-
The header fields of a single HTTP message.
- headers() - Method in class okhttp3.mockwebserver.PushPromise
-
- headers() - Method in class okhttp3.MultipartBody.Part
-
- headers(Headers) - Method in class okhttp3.Request.Builder
-
Removes all headers on this builder and adds headers.
- headers() - Method in class okhttp3.Request
-
- headers(String) - Method in class okhttp3.Request
-
- headers(Headers) - Method in class okhttp3.Response.Builder
-
Removes all headers on this builder and adds headers.
- headers(String) - Method in class okhttp3.Response
-
- headers() - Method in class okhttp3.Response
-
- Headers.Builder - Class in okhttp3
-
- HeldCertificate - Class in okhttp3.internal.tls
-
A certificate and its private key.
- HeldCertificate(X509Certificate, KeyPair) - Constructor for class okhttp3.internal.tls.HeldCertificate
-
- HeldCertificate.Builder - Class in okhttp3.internal.tls
-
- hitCount() - Method in class okhttp3.Cache
-
- host(String) - Method in class okhttp3.HttpUrl.Builder
-
- host() - Method in class okhttp3.HttpUrl
-
- hostHeader(HttpUrl, boolean) - Static method in class okhttp3.internal.Util
-
- hostnameVerifier() - Method in class okhttp3.Address
-
Returns the hostname verifier, or null if this is not an HTTPS address.
- hostnameVerifier(HostnameVerifier) - Method in class okhttp3.OkHttpClient.Builder
-
Sets the verifier used to confirm that response certificates apply to requested hostnames for
HTTPS connections.
- hostnameVerifier() - Method in class okhttp3.OkHttpClient
-
- hostOnly() - Method in class okhttp3.Cookie
-
Returns true if this cookie's domain should be interpreted as a single host name, or false if
it should be interpreted as a pattern.
- hostOnlyDomain(String) - Method in class okhttp3.Cookie.Builder
-
Set the host-only domain for this cookie.
- Http1Codec - Class in okhttp3.internal.http1
-
A socket connection that can be used to send HTTP/1.1 messages.
- Http1Codec(OkHttpClient, StreamAllocation, BufferedSource, BufferedSink) - Constructor for class okhttp3.internal.http1.Http1Codec
-
- Http2 - Class in okhttp3.internal.http2
-
- Http2Codec - Class in okhttp3.internal.http2
-
Encode requests and responses using HTTP/2 frames.
- Http2Codec(OkHttpClient, StreamAllocation, Http2Connection) - Constructor for class okhttp3.internal.http2.Http2Codec
-
- Http2Connection - Class in okhttp3.internal.http2
-
A socket connection to a remote peer.
- Http2Connection.Builder - Class in okhttp3.internal.http2
-
- Http2Connection.Listener - Class in okhttp3.internal.http2
-
Listener of streams and settings initiated by the peer.
- http2HeadersList(Request) - Static method in class okhttp3.internal.http2.Http2Codec
-
- Http2Server - Class in okhttp3.internal.http2
-
A basic HTTP/2 server that serves the contents of a local directory.
- Http2Server(File, SSLSocketFactory) - Constructor for class okhttp3.internal.http2.Http2Server
-
- Http2Stream - Class in okhttp3.internal.http2
-
A logical bidirectional stream.
- HTTP_CONTINUE - Static variable in class okhttp3.internal.http.StatusLine
-
- HTTP_PERM_REDIRECT - Static variable in class okhttp3.internal.http.StatusLine
-
- HTTP_TEMP_REDIRECT - Static variable in class okhttp3.internal.http.StatusLine
-
Numeric status code, 307: Temporary Redirect.
- httpCode - Variable in enum okhttp3.internal.http2.ErrorCode
-
- HttpCodec - Interface in okhttp3.internal.http
-
Encodes HTTP requests and decodes HTTP responses.
- HttpDate - Class in okhttp3.internal.http
-
Best-effort parser for HTTP dates.
- HttpHeaders - Class in okhttp3.internal.http
-
Headers and utilities for internal use by OkHttp.
- HttpLoggingInterceptor - Class in okhttp3.logging
-
An OkHttp interceptor which logs request and response information.
- HttpLoggingInterceptor() - Constructor for class okhttp3.logging.HttpLoggingInterceptor
-
- HttpLoggingInterceptor(HttpLoggingInterceptor.Logger) - Constructor for class okhttp3.logging.HttpLoggingInterceptor
-
- HttpLoggingInterceptor.Level - Enum in okhttp3.logging
-
- HttpLoggingInterceptor.Logger - Interface in okhttp3.logging
-
- HttpMethod - Class in okhttp3.internal.http
-
- httpOnly() - Method in class okhttp3.Cookie.Builder
-
- httpOnly() - Method in class okhttp3.Cookie
-
Returns true if this cookie should be limited to only HTTP APIs.
- httpStream() - Method in class okhttp3.internal.http.RealInterceptorChain
-
- HttpUrl - Class in okhttp3
-
A uniform resource locator (URL) with a scheme of either http or https.
- HttpUrl.Builder - Class in okhttp3
-