Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2019. All rights reserved.