| 程序包 | 说明 |
|---|---|
| com.lark.oapi.okhttp |
An HTTP+HTTP/2 client for Android and Java applications.
|
| com.lark.oapi.okhttp.internal.connection | |
| com.lark.oapi.okhttp.internal.http | |
| com.lark.oapi.okhttp.internal.http2 | |
| com.lark.oapi.okhttp.internal.platform |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static Protocol[] |
Protocol.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Protocol> |
OkHttpClient.protocols() |
List<Protocol> |
Address.protocols()
Returns the protocols the client supports.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.protocols(List<Protocol> protocols)
Configure the protocols used by this client to communicate with remote servers.
|
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
Protocol |
RealConnection.protocol() |
| 限定符和类型 | 字段和说明 |
|---|---|
Protocol |
StatusLine.protocol |
| 构造器和说明 |
|---|
StatusLine(Protocol protocol,
int code,
String message) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Response.Builder |
Http2ExchangeCodec.readHttp2HeadersList(Headers headerBlock,
Protocol protocol)
Returns headers for a name value block containing an HTTP/2 response.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
void |
ConscryptPlatform.configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols) |
Copyright © 2022. All rights reserved.