Modifier and Type | Method and Description |
---|---|
static Protocol |
Protocol.get(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(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.protocols() |
List<Protocol> |
Address.protocols()
Returns the protocols the client supports.
|
Modifier and Type | Method and Description |
---|---|
void |
EventListener.connectEnd(Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
Protocol protocol)
Invoked immediately after a socket connection was attempted.
|
void |
EventListener.connectFailed(Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
Protocol protocol,
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(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 proxyAuthenticator,
Proxy proxy,
List<Protocol> protocols,
List<ConnectionSpec> connectionSpecs,
ProxySelector proxySelector) |
Copyright © 2019. All rights reserved.