| Modifier and Type | Method and Description |
|---|---|
static Protocol |
Protocol.get(java.lang.String protocol)
Returns the protocol identified by
protocol. |
Protocol |
Response.protocol()
|
Protocol |
Connection.protocol()
Returns the protocol negotiated by this connection, or
HTTP_1_1 if no protocol
has been negotiated. |
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> |
OkHttpClient.protocols() |
java.util.List<Protocol> |
Address.protocols()
Returns the protocols the client supports.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
Copyright © 2016. All Rights Reserved.