| 程序包 | 说明 |
|---|---|
| com.lark.oapi.okhttp |
An HTTP+HTTP/2 client for Android and Java applications.
|
| com.lark.oapi.okhttp.internal | |
| com.lark.oapi.okhttp.internal.connection | |
| com.lark.oapi.okhttp.internal.http |
| 限定符和类型 | 方法和说明 |
|---|---|
Call |
Interceptor.Chain.call() |
Call |
Call.clone()
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
|
Call |
OkHttpClient.newCall(Request request)
Prepares the
request to be executed at some point in the future. |
Call |
Call.Factory.newCall(Request request) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Call> |
Dispatcher.queuedCalls()
Returns a snapshot of the calls currently awaiting execution.
|
List<Call> |
Dispatcher.runningCalls()
Returns a snapshot of the calls currently being executed.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
EventListener.callEnd(Call call)
Invoked immediately after a call has completely ended.
|
void |
EventListener.callFailed(Call call,
IOException ioe)
Invoked when a call fails permanently.
|
void |
EventListener.callStart(Call call)
Invoked as soon as a call is enqueued or executed by a client.
|
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.
|
void |
EventListener.connectionAcquired(Call call,
Connection connection)
Invoked after a connection has been acquired for the
call. |
void |
EventListener.connectionReleased(Call call,
Connection connection)
Invoked after a connection has been released for the
call. |
void |
EventListener.connectStart(Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy)
Invoked just prior to initiating a socket connection.
|
EventListener |
EventListener.Factory.create(Call call)
Creates an instance of the
EventListener for a particular Call. |
void |
EventListener.dnsEnd(Call call,
String domainName,
List<InetAddress> inetAddressList)
Invoked immediately after a DNS lookup.
|
void |
EventListener.dnsStart(Call call,
String domainName)
Invoked just prior to a DNS lookup.
|
void |
Callback.onFailure(Call call,
IOException e)
Called when the request could not be executed due to cancellation, a connectivity problem or
timeout.
|
void |
Callback.onResponse(Call call,
Response response)
Called when the HTTP response was successfully returned by the remote server.
|
void |
EventListener.requestBodyEnd(Call call,
long byteCount)
Invoked immediately after sending a request body.
|
void |
EventListener.requestBodyStart(Call call)
Invoked just prior to sending a request body.
|
void |
EventListener.requestFailed(Call call,
IOException ioe)
Invoked when a request fails to be written.
|
void |
EventListener.requestHeadersEnd(Call call,
Request request)
Invoked immediately after sending request headers.
|
void |
EventListener.requestHeadersStart(Call call)
Invoked just prior to sending request headers.
|
void |
EventListener.responseBodyEnd(Call call,
long byteCount)
Invoked immediately after receiving a response body and completing reading it.
|
void |
EventListener.responseBodyStart(Call call)
Invoked just prior to receiving the response body.
|
void |
EventListener.responseFailed(Call call,
IOException ioe)
Invoked when a response fails to be read.
|
void |
EventListener.responseHeadersEnd(Call call,
Response response)
Invoked immediately after receiving response headers.
|
void |
EventListener.responseHeadersStart(Call call)
Invoked just prior to receiving response headers.
|
void |
EventListener.secureConnectEnd(Call call,
Handshake handshake)
Invoked immediately after a TLS connection was attempted.
|
void |
EventListener.secureConnectStart(Call call)
Invoked just prior to initiating a TLS connection.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Call |
Internal.newWebSocketCall(OkHttpClient client,
Request request) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RealConnection.connect(int connectTimeout,
int readTimeout,
int writeTimeout,
int pingIntervalMillis,
boolean connectionRetryEnabled,
Call call,
EventListener eventListener) |
| 构造器和说明 |
|---|
Exchange(Transmitter transmitter,
Call call,
EventListener eventListener,
com.lark.oapi.okhttp.internal.connection.ExchangeFinder finder,
ExchangeCodec codec) |
Transmitter(OkHttpClient client,
Call call) |
| 限定符和类型 | 方法和说明 |
|---|---|
Call |
RealInterceptorChain.call() |
| 构造器和说明 |
|---|
RealInterceptorChain(List<Interceptor> interceptors,
Transmitter transmitter,
Exchange exchange,
int index,
Request request,
Call call,
int connectTimeout,
int readTimeout,
int writeTimeout) |
Copyright © 2024. All rights reserved.