接口的使用
com.lark.oapi.okhttp.Call
使用Call的程序包
程序包
说明
An HTTP+HTTP/2 client for Android and Java applications.
-
com.lark.oapi.okhttp中Call的使用
返回Call的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Interceptor.Chain.call()Call.clone()Create a new, identical call to this one which can be enqueued or executed even if this call has already been.Prepares therequestto be executed at some point in the future.返回变量类型为Call的类型的com.lark.oapi.okhttp中的方法修饰符和类型方法说明Dispatcher.queuedCalls()Returns a snapshot of the calls currently awaiting execution.Dispatcher.runningCalls()Returns a snapshot of the calls currently being executed.参数类型为Call的com.lark.oapi.okhttp中的方法修饰符和类型方法说明voidInvoked immediately after a call has completely ended.voidEventListener.callFailed(Call call, IOException ioe) Invoked when a call fails permanently.voidInvoked as soon as a call is enqueued or executed by a client.voidEventListener.connectEnd(Call call, InetSocketAddress inetSocketAddress, Proxy proxy, Protocol protocol) Invoked immediately after a socket connection was attempted.voidEventListener.connectFailed(Call call, InetSocketAddress inetSocketAddress, Proxy proxy, Protocol protocol, IOException ioe) Invoked when a connection attempt fails.voidEventListener.connectionAcquired(Call call, Connection connection) Invoked after a connection has been acquired for thecall.voidEventListener.connectionReleased(Call call, Connection connection) Invoked after a connection has been released for thecall.voidEventListener.connectStart(Call call, InetSocketAddress inetSocketAddress, Proxy proxy) Invoked just prior to initiating a socket connection.Creates an instance of theEventListenerfor a particularCall.voidEventListener.dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) Invoked immediately after a DNS lookup.voidInvoked just prior to a DNS lookup.voidCallback.onFailure(Call call, IOException e) Called when the request could not be executed due to cancellation, a connectivity problem or timeout.voidCallback.onResponse(Call call, Response response) Called when the HTTP response was successfully returned by the remote server.voidEventListener.requestBodyEnd(Call call, long byteCount) Invoked immediately after sending a request body.voidEventListener.requestBodyStart(Call call) Invoked just prior to sending a request body.voidEventListener.requestFailed(Call call, IOException ioe) Invoked when a request fails to be written.voidEventListener.requestHeadersEnd(Call call, Request request) Invoked immediately after sending request headers.voidEventListener.requestHeadersStart(Call call) Invoked just prior to sending request headers.voidEventListener.responseBodyEnd(Call call, long byteCount) Invoked immediately after receiving a response body and completing reading it.voidEventListener.responseBodyStart(Call call) Invoked just prior to receiving the response body.voidEventListener.responseFailed(Call call, IOException ioe) Invoked when a response fails to be read.voidEventListener.responseHeadersEnd(Call call, Response response) Invoked immediately after receiving response headers.voidEventListener.responseHeadersStart(Call call) Invoked just prior to receiving response headers.voidEventListener.secureConnectEnd(Call call, Handshake handshake) Invoked immediately after a TLS connection was attempted.voidEventListener.secureConnectStart(Call call) Invoked just prior to initiating a TLS connection. -
com.lark.oapi.okhttp.internal中Call的使用
-
com.lark.oapi.okhttp.internal.connection中Call的使用
修饰符和类型方法说明voidRealConnection.connect(int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, Call call, EventListener eventListener) 参数类型为Call的com.lark.oapi.okhttp.internal.connection中的构造器限定符构造器说明Exchange(Transmitter transmitter, Call call, EventListener eventListener, com.lark.oapi.okhttp.internal.connection.ExchangeFinder finder, ExchangeCodec codec) Transmitter(OkHttpClient client, Call call) -
com.lark.oapi.okhttp.internal.http中Call的使用
参数类型为Call的com.lark.oapi.okhttp.internal.http中的构造器限定符构造器说明RealInterceptorChain(List<Interceptor> interceptors, Transmitter transmitter, Exchange exchange, int index, Request request, Call call, int connectTimeout, int readTimeout, int writeTimeout)