Package | Description |
---|---|
com.squareup.okhttp | |
com.squareup.okhttp.internal | |
com.squareup.okhttp.internal.framed | |
com.squareup.okhttp.internal.http | |
com.squareup.okhttp.internal.io |
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> |
Address.getProtocols()
Returns the protocols the client supports.
|
List<Protocol> |
OkHttpClient.getProtocols() |
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) |
Modifier and Type | Method and Description |
---|---|
void |
Platform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols)
Configure TLS extensions on
sslSocket for route . |
Modifier and Type | Method and Description |
---|---|
Protocol |
Spdy3.getProtocol() |
Protocol |
Http2.getProtocol() |
Protocol |
Variant.getProtocol()
The protocol as selected using ALPN.
|
Protocol |
FramedConnection.getProtocol()
The protocol as selected using ALPN.
|
Modifier and Type | Method and Description |
---|---|
FramedConnection.Builder |
FramedConnection.Builder.protocol(Protocol protocol) |
Modifier and Type | Field and Description |
---|---|
Protocol |
StatusLine.protocol |
Constructor and Description |
---|
StatusLine(Protocol protocol,
int code,
String message) |
Modifier and Type | Method and Description |
---|---|
Protocol |
RealConnection.getProtocol() |
Copyright © 2017. All Rights Reserved.