| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal | |
| okhttp3.internal.huc |
| Modifier and Type | Method and Description |
|---|---|
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 |
Call.Factory.newCall(Request request) |
Call |
OkHttpClient.newCall(Request request)
Prepares the
request to be executed at some point in the future. |
| 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 |
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.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Call |
Internal.newWebSocketCall(OkHttpClient client,
Request request) |
| Modifier and Type | Method and Description |
|---|---|
abstract StreamAllocation |
Internal.streamAllocation(Call call) |
| Modifier and Type | Method and Description |
|---|---|
void |
OkHttpURLConnection.onFailure(Call call,
IOException e) |
void |
OkHttpURLConnection.onResponse(Call call,
Response response) |
Copyright © 2017. All Rights Reserved.