Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.apache | |
okhttp3.internal | |
okhttp3.internal.cache | |
okhttp3.internal.connection | |
okhttp3.internal.http | |
okhttp3.internal.http1 | |
okhttp3.internal.http2 | |
okhttp3.internal.huc | |
okhttp3.internal.platform | |
okhttp3.internal.ws | |
okhttp3.logging |
An OkHttp interceptor which logs HTTP request and response data.
|
Class and Description |
---|
Address
A specification for a connection to an origin server.
|
Authenticator
Responds to an authentication challenge from either a remote web server or a proxy server.
|
Cache
Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and
bandwidth.
|
CacheControl
A Cache-Control header with cache directives from a server or client.
|
CacheControl.Builder
Builds a
Cache-Control request header. |
Call
A call is a request that has been prepared for execution.
|
Call.Factory |
Callback |
CertificatePinner
Constrains which certificates are trusted.
|
CertificatePinner.Builder
Builds a configured certificate pinner.
|
CertificatePinner.Pin |
Challenge
An RFC 7617 challenge.
|
CipherSuite |
Connection
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
|
ConnectionPool
Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
|
ConnectionSpec
Specifies configuration for the socket connection that HTTP traffic travels through.
|
ConnectionSpec.Builder |
Cookie
An RFC 6265 Cookie.
|
Cookie.Builder
Builds a cookie.
|
CookieJar
Provides policy and persistence for HTTP cookies.
|
Dispatcher
Policy on when async requests are executed.
|
Dns
A domain name service that resolves IP addresses for host names.
|
EventListener
Listener for metrics events.
|
EventListener.Factory
Warning: This is a non-final API.
|
FakeDns |
FakeProxySelector |
FormBody |
FormBody.Builder |
Handshake
A record of a TLS handshake.
|
Headers
The header fields of a single HTTP message.
|
Headers.Builder |
HttpUrl
A uniform resource locator (URL) with a scheme of either
http or https . |
HttpUrl.Builder |
HttpUrl.Builder.ParseResult |
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
MediaType
An RFC 2045 Media Type, appropriate to describe
the content type of an HTTP request or response body.
|
MultipartBody
An RFC 2387-compliant request body.
|
MultipartBody.Builder |
MultipartBody.Part |
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
OkHttpClient.Builder |
OkUrlFactory
Deprecated.
OkHttp will be dropping its ability to be used with
HttpURLConnection in an
upcoming release. Applications that need this should either downgrade to the system's built-in
HttpURLConnection or upgrade to OkHttp's Request/Response API. |
Protocol
Protocols that OkHttp implements for ALPN selection.
|
RealCall |
RealCall.AsyncCall |
Request
An HTTP request.
|
Request.Builder |
RequestBody |
Response
An HTTP response.
|
Response.Builder |
ResponseBody
A one-shot stream from the origin server to the client application with the raw bytes of the
response body.
|
Route
The concrete route used by a connection to reach an abstract origin server.
|
TlsVersion
Versions of TLS that can be offered when negotiating a secure socket.
|
WebSocket
A non-blocking interface to a web socket.
|
WebSocket.Factory |
WebSocketListener |
Class and Description |
---|
MediaType
An RFC 2045 Media Type, appropriate to describe
the content type of an HTTP request or response body.
|
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Request
An HTTP request.
|
RequestBody |
Response
An HTTP response.
|
Class and Description |
---|
Address
A specification for a connection to an origin server.
|
Call
A call is a request that has been prepared for execution.
|
ConnectionPool
Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
|
ConnectionSpec
Specifies configuration for the socket connection that HTTP traffic travels through.
|
Headers
The header fields of a single HTTP message.
|
Headers.Builder |
HttpUrl
A uniform resource locator (URL) with a scheme of either
http or https . |
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
OkHttpClient.Builder |
Request
An HTTP request.
|
RequestBody |
Response.Builder |
ResponseBody
A one-shot stream from the origin server to the client application with the raw bytes of the
response body.
|
Route
The concrete route used by a connection to reach an abstract origin server.
|
Class and Description |
---|
Headers
The header fields of a single HTTP message.
|
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
Request
An HTTP request.
|
Response
An HTTP response.
|
Class and Description |
---|
Address
A specification for a connection to an origin server.
|
Call
A call is a request that has been prepared for execution.
|
Connection
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
|
ConnectionPool
Manages reuse of HTTP and HTTP/2 connections for reduced network latency.
|
ConnectionSpec
Specifies configuration for the socket connection that HTTP traffic travels through.
|
EventListener
Listener for metrics events.
|
Handshake
A record of a TLS handshake.
|
HttpUrl
A uniform resource locator (URL) with a scheme of either
http or https . |
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Protocol
Protocols that OkHttp implements for ALPN selection.
|
Request
An HTTP request.
|
Response
An HTTP response.
|
Route
The concrete route used by a connection to reach an abstract origin server.
|
Class and Description |
---|
Address
A specification for a connection to an origin server.
|
Call
A call is a request that has been prepared for execution.
|
Challenge
An RFC 7617 challenge.
|
Connection
The sockets and streams of an HTTP, HTTPS, or HTTPS+HTTP/2 connection.
|
Cookie
An RFC 6265 Cookie.
|
CookieJar
Provides policy and persistence for HTTP cookies.
|
EventListener
Listener for metrics events.
|
Headers
The header fields of a single HTTP message.
|
HttpUrl
A uniform resource locator (URL) with a scheme of either
http or https . |
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
MediaType
An RFC 2045 Media Type, appropriate to describe
the content type of an HTTP request or response body.
|
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Protocol
Protocols that OkHttp implements for ALPN selection.
|
Request
An HTTP request.
|
Response
An HTTP response.
|
Response.Builder |
ResponseBody
A one-shot stream from the origin server to the client application with the raw bytes of the
response body.
|
Route
The concrete route used by a connection to reach an abstract origin server.
|
Class and Description |
---|
Headers
The header fields of a single HTTP message.
|
HttpUrl
A uniform resource locator (URL) with a scheme of either
http or https . |
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Request
An HTTP request.
|
Response
An HTTP response.
|
Response.Builder |
ResponseBody
A one-shot stream from the origin server to the client application with the raw bytes of the
response body.
|
Class and Description |
---|
Interceptor.Chain |
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Protocol
Protocols that OkHttp implements for ALPN selection.
|
Request
An HTTP request.
|
Response
An HTTP response.
|
Response.Builder |
ResponseBody
A one-shot stream from the origin server to the client application with the raw bytes of the
response body.
|
Class and Description |
---|
Call
A call is a request that has been prepared for execution.
|
Callback |
Handshake
A record of a TLS handshake.
|
Headers
The header fields of a single HTTP message.
|
Headers.Builder |
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
MediaType
An RFC 2045 Media Type, appropriate to describe
the content type of an HTTP request or response body.
|
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Request
An HTTP request.
|
RequestBody |
Response
An HTTP response.
|
Class and Description |
---|
Protocol
Protocols that OkHttp implements for ALPN selection.
|
Class and Description |
---|
Call
A call is a request that has been prepared for execution.
|
OkHttpClient
Factory for calls, which can be used to send HTTP requests and read their
responses.
|
Protocol
Protocols that OkHttp implements for ALPN selection.
|
Request
An HTTP request.
|
Response
An HTTP response.
|
WebSocket
A non-blocking interface to a web socket.
|
WebSocketListener |
Class and Description |
---|
Headers
The header fields of a single HTTP message.
|
Interceptor
Observes, modifies, and potentially short-circuits requests going out and the corresponding
responses coming back in.
|
Interceptor.Chain |
Response
An HTTP response.
|