| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal | |
| okhttp3.internal.connection | |
| okhttp3.internal.http | |
| okhttp3.internal.http1 | |
| okhttp3.internal.http2 |
| Modifier and Type | Method and Description |
|---|---|
(package private) StreamAllocation |
RealCall.streamAllocation() |
| 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) 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 StreamAllocation |
Internal.streamAllocation(Call call) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.net.Socket |
Internal.deduplicate(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation) |
abstract RealConnection |
Internal.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.ref.Reference<StreamAllocation>> |
RealConnection.allocations
Current streams carried by this connection.
|
| Modifier and Type | Method and Description |
|---|---|
HttpCodec |
RealConnection.newCodec(OkHttpClient client,
Interceptor.Chain chain,
StreamAllocation streamAllocation) |
RealWebSocket.Streams |
RealConnection.newWebSocketStreams(StreamAllocation streamAllocation) |
| Constructor and Description |
|---|
StreamAllocationReference(StreamAllocation referent,
java.lang.Object callStackTrace) |
| Modifier and Type | Field and Description |
|---|---|
private StreamAllocation |
RealInterceptorChain.streamAllocation |
private StreamAllocation |
RetryAndFollowUpInterceptor.streamAllocation |
| Modifier and Type | Method and Description |
|---|---|
StreamAllocation |
RealInterceptorChain.streamAllocation() |
StreamAllocation |
RetryAndFollowUpInterceptor.streamAllocation() |
| Modifier and Type | Method and Description |
|---|---|
Response |
RealInterceptorChain.proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
private boolean |
RetryAndFollowUpInterceptor.recover(java.io.IOException e,
StreamAllocation streamAllocation,
boolean requestSendStarted,
Request userRequest)
Report and attempt to recover from a failure to communicate with a server.
|
| Constructor and Description |
|---|
RealInterceptorChain(java.util.List<Interceptor> interceptors,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection,
int index,
Request request,
Call call,
EventListener eventListener,
int connectTimeout,
int readTimeout,
int writeTimeout) |
| Modifier and Type | Field and Description |
|---|---|
(package private) StreamAllocation |
Http1Codec.streamAllocation
The stream allocation that owns this stream.
|
| Constructor and Description |
|---|
Http1Codec(OkHttpClient client,
StreamAllocation streamAllocation,
okio.BufferedSource source,
okio.BufferedSink sink) |
| Modifier and Type | Field and Description |
|---|---|
(package private) StreamAllocation |
Http2Codec.streamAllocation |
| Constructor and Description |
|---|
Http2Codec(OkHttpClient client,
Interceptor.Chain chain,
StreamAllocation streamAllocation,
Http2Connection connection) |