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.mockwebserver |
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> |
Address.protocols()
Returns the protocols the client supports.
|
List<Protocol> |
OkHttpClient.protocols() |
Modifier and Type | Method and Description |
---|---|
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) |
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,
String message) |
Modifier and Type | Method and Description |
---|---|
Protocol |
Http2Connection.getProtocol()
The protocol as selected using ALPN.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
Platform.alpnProtocolNames(List<Protocol> protocols) |
void |
Platform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols)
Configure TLS extensions on
sslSocket for route . |
Modifier and Type | Method and Description |
---|---|
void |
MockWebServer.setProtocols(List<Protocol> protocols)
Indicates the protocols supported by ALPN on incoming HTTPS connections.
|
Copyright © 2017. All Rights Reserved.