Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.internal | |
okhttp3.internal.connection | |
okhttp3.internal.http |
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 . |
(package private) RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
Returns a recycled connection to
address , or null if no such connection exists. |
Modifier and Type | Method and Description |
---|---|
abstract RealConnection |
Internal.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
Modifier and Type | Field and Description |
---|---|
private Route |
RealConnection.route |
private Route |
StreamAllocation.route |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Route> |
RouteDatabase.failedRoutes |
private java.util.List<Route> |
RouteSelector.postponedRoutes |
private java.util.List<Route> |
RouteSelector.Selection.routes |
Modifier and Type | Method and Description |
---|---|
Route |
RouteSelector.Selection.next() |
Route |
RealConnection.route() |
Route |
StreamAllocation.route() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Route> |
RouteSelector.Selection.getAll() |
Modifier and Type | Method and Description |
---|---|
void |
RouteDatabase.connected(Route route)
Records success connecting to
route . |
void |
RouteSelector.connectFailed(Route failedRoute,
java.io.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,
java.net.Socket socket,
long idleAtNanos) |
Constructor and Description |
---|
RealConnection(ConnectionPool connectionPool,
Route route) |
Constructor and Description |
---|
Selection(java.util.List<Route> routes) |
Modifier and Type | Method and Description |
---|---|
private Request |
RetryAndFollowUpInterceptor.followUpRequest(Response userResponse,
Route route)
Figures out the HTTP request to make in response to receiving
userResponse . |