| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal | |
| okhttp3.internal.connection |
| Modifier and Type | Method and Description |
|---|---|
Route |
Connection.route()
Returns the route used by this connection.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
JavaNetAuthenticator.authenticate(Route route,
Response response) |
Request |
Authenticator.authenticate(Route route,
Response response)
Returns a request that includes a credential to satisfy an authentication challenge in
response. |
| Modifier and Type | Method and Description |
|---|---|
abstract RealConnection |
Internal.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Modifier and Type | Method and Description |
|---|---|
Route |
RouteSelector.next() |
Route |
RealConnection.route() |
| Modifier and Type | Method and Description |
|---|---|
void |
RouteDatabase.connected(Route route)
Records success connecting to
route. |
void |
RouteSelector.connectFailed(Route failedRoute,
IOException failure)
Clients should invoke this method when they encounter a connectivity failure on a connection
returned by this route selector.
|
void |
RouteDatabase.failed(Route failedRoute)
Records a failure connecting to
failedRoute. |
boolean |
RealConnection.isEligible(Address address,
Route route)
Returns true if this connection can carry a stream allocation to
address. |
boolean |
RouteDatabase.shouldPostpone(Route route)
Returns true if
route has failed recently and should be avoided. |
static RealConnection |
RealConnection.testConnection(ConnectionPool connectionPool,
Route route,
Socket socket,
long idleAtNanos) |
| Constructor and Description |
|---|
RealConnection(ConnectionPool connectionPool,
Route route) |
Copyright © 2017. All Rights Reserved.