Modifier and Type | Method and Description |
---|---|
static Protocol |
Protocol.get(String protocol)
Returns the protocol identified by
protocol . |
Protocol |
Connection.getProtocol()
Returns the protocol negotiated by this connection, or
HTTP_1_1 if no protocol
has been negotiated. |
Protocol |
Response.protocol()
|
static Protocol |
Protocol.valueOf(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 |
---|---|
List<Protocol> |
OkHttpClient.getProtocols() |
List<Protocol> |
Address.getProtocols()
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 |
OkHttpClient.setProtocols(List<Protocol> protocols)
Configure the protocols used by this client to communicate with remote
servers.
|
Constructor and Description |
---|
Address(String uriHost,
int uriPort,
Dns dns,
SocketFactory socketFactory,
SSLSocketFactory sslSocketFactory,
HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator authenticator,
Proxy proxy,
List<Protocol> protocols,
List<ConnectionSpec> connectionSpecs,
ProxySelector proxySelector) |
Copyright © 2016. All Rights Reserved.