| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal | |
| okhttp3.internal.connection |
| Modifier and Type | Field and Description |
|---|---|
(package private) ConnectionPool |
OkHttpClient.connectionPool |
(package private) ConnectionPool |
OkHttpClient.Builder.connectionPool |
| Modifier and Type | Method and Description |
|---|---|
ConnectionPool |
OkHttpClient.connectionPool() |
| Modifier and Type | Method and Description |
|---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.connectionPool(ConnectionPool connectionPool)
Sets the connection pool used to recycle HTTP and HTTPS connections.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
Internal.connectionBecameIdle(ConnectionPool pool,
RealConnection connection) |
abstract java.net.Socket |
Internal.deduplicate(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation) |
abstract RealConnection |
Internal.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
abstract void |
Internal.put(ConnectionPool pool,
RealConnection connection) |
abstract RouteDatabase |
Internal.routeDatabase(ConnectionPool connectionPool) |
| Modifier and Type | Field and Description |
|---|---|
private ConnectionPool |
RealConnection.connectionPool |
private ConnectionPool |
StreamAllocation.connectionPool |
| Modifier and Type | Method and Description |
|---|---|
static RealConnection |
RealConnection.testConnection(ConnectionPool connectionPool,
Route route,
java.net.Socket socket,
long idleAtNanos) |
| Constructor and Description |
|---|
RealConnection(ConnectionPool connectionPool,
Route route) |
StreamAllocation(ConnectionPool connectionPool,
Address address,
Call call,
EventListener eventListener,
java.lang.Object callStackTrace) |