| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal.connection | |
| okhttp3.internal.http | |
| okhttp3.internal.http2 | |
| okhttp3.internal.platform | |
| okhttp3.internal.ws |
| Modifier and Type | Field and Description |
|---|---|
private Protocol |
Cache.Entry.protocol |
(package private) Protocol |
Response.protocol |
(package private) Protocol |
Response.Builder.protocol |
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.util.List<Protocol> |
OkHttpClient.DEFAULT_PROTOCOLS |
(package private) java.util.List<Protocol> |
Address.protocols |
(package private) java.util.List<Protocol> |
OkHttpClient.protocols |
(package private) java.util.List<Protocol> |
OkHttpClient.Builder.protocols |
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Protocol.get(java.lang.String protocol)
Returns the protocol identified by
protocol. |
Protocol |
Connection.protocol()
Returns the protocol negotiated by this connection, or
HTTP_1_1 if no protocol
has been negotiated. |
Protocol |
Response.protocol()
|
static Protocol |
Protocol.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
Protocol.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Protocol> |
Address.protocols()
Returns the protocols the client supports.
|
java.util.List<Protocol> |
OkHttpClient.protocols() |
| Modifier and Type | Method and Description |
|---|---|
void |
EventListener.connectEnd(Call call,
java.net.InetSocketAddress inetSocketAddress,
java.net.Proxy proxy,
Protocol protocol)
Invoked immediately after a socket connection was attempted.
|
void |
EventListener.connectFailed(Call call,
java.net.InetSocketAddress inetSocketAddress,
java.net.Proxy proxy,
Protocol protocol,
java.io.IOException ioe)
Invoked when a connection attempt fails.
|
Response.Builder |
Response.Builder.protocol(Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.protocols(java.util.List<Protocol> protocols)
Configure the protocols used by this client to communicate with remote servers.
|
| Constructor and Description |
|---|
Address(java.lang.String uriHost,
int uriPort,
Dns dns,
javax.net.SocketFactory socketFactory,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
javax.net.ssl.HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
java.net.Proxy proxy,
java.util.List<Protocol> protocols,
java.util.List<ConnectionSpec> connectionSpecs,
java.net.ProxySelector proxySelector) |
| Modifier and Type | Field and Description |
|---|---|
private Protocol |
RealConnection.protocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
RealConnection.protocol() |
| Modifier and Type | Field and Description |
|---|---|
Protocol |
StatusLine.protocol |
| Constructor and Description |
|---|
StatusLine(Protocol protocol,
int code,
java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
Http2Connection.getProtocol()
The protocol as selected using ALPN.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
Platform.alpnProtocolNames(java.util.List<Protocol> protocols) |
(package private) static byte[] |
Platform.concatLengthPrefixed(java.util.List<Protocol> protocols)
Returns the concatenation of 8-bit, length prefixed protocol names.
|
void |
Jdk9Platform.configureTlsExtensions(javax.net.ssl.SSLSocket sslSocket,
java.lang.String hostname,
java.util.List<Protocol> protocols) |
void |
JdkWithJettyBootPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket sslSocket,
java.lang.String hostname,
java.util.List<Protocol> protocols) |
void |
Platform.configureTlsExtensions(javax.net.ssl.SSLSocket sslSocket,
java.lang.String hostname,
java.util.List<Protocol> protocols)
Configure TLS extensions on
sslSocket for route. |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<Protocol> |
RealWebSocket.ONLY_HTTP1 |