Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.internal | |
okhttp3.internal.connection | |
okhttp3.internal.http |
Modifier and Type | Field and Description |
---|---|
(package private) Address |
Route.address |
Modifier and Type | Method and Description |
---|---|
Address |
Route.address() |
Modifier and Type | Method and Description |
---|---|
(package private) java.net.Socket |
ConnectionPool.deduplicate(Address address,
StreamAllocation streamAllocation)
Replaces the connection held by
streamAllocation with a shared connection if possible. |
(package private) boolean |
Address.equalsNonHost(Address that) |
(package private) RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
Returns a recycled connection to
address , or null if no such connection exists. |
Constructor and Description |
---|
Route(Address address,
java.net.Proxy proxy,
java.net.InetSocketAddress inetSocketAddress) |
Modifier and Type | Method and Description |
---|---|
abstract java.net.Socket |
Internal.deduplicate(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation) |
abstract boolean |
Internal.equalsNonHost(Address a,
Address b) |
abstract RealConnection |
Internal.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
Modifier and Type | Field and Description |
---|---|
private Address |
RouteSelector.address |
Address |
StreamAllocation.address |
Modifier and Type | Method and Description |
---|---|
boolean |
RealConnection.isEligible(Address address,
Route route)
Returns true if this connection can carry a stream allocation to
address . |
Constructor and Description |
---|
RouteSelector(Address address,
RouteDatabase routeDatabase,
Call call,
EventListener eventListener) |
StreamAllocation(ConnectionPool connectionPool,
Address address,
Call call,
EventListener eventListener,
java.lang.Object callStackTrace) |
Modifier and Type | Method and Description |
---|---|
private Address |
RetryAndFollowUpInterceptor.createAddress(HttpUrl url) |