Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.internal.cache | |
okhttp3.internal.connection | |
okhttp3.internal.http | |
okhttp3.internal.http2 | |
okhttp3.logging |
An OkHttp interceptor which logs HTTP request and response data.
|
Modifier and Type | Method and Description |
---|---|
Interceptor.Chain |
Interceptor.Chain.withConnectTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
Interceptor.Chain.withReadTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
Interceptor.Chain.withWriteTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
Response |
Interceptor.intercept(Interceptor.Chain chain) |
Modifier and Type | Method and Description |
---|---|
Response |
CacheInterceptor.intercept(Interceptor.Chain chain) |
Modifier and Type | Method and Description |
---|---|
ExchangeCodec |
ExchangeFinder.find(OkHttpClient client,
Interceptor.Chain chain,
boolean doExtensiveHealthChecks) |
Response |
ConnectInterceptor.intercept(Interceptor.Chain chain) |
(package private) ExchangeCodec |
RealConnection.newCodec(OkHttpClient client,
Interceptor.Chain chain) |
(package private) Exchange |
Transmitter.newExchange(Interceptor.Chain chain,
boolean doExtensiveHealthChecks)
Returns a new exchange to carry a new request and response.
|
Modifier and Type | Class and Description |
---|---|
class |
RealInterceptorChain
A concrete interceptor chain that carries the entire interceptor chain: all application
interceptors, the OkHttp core, all network interceptors, and finally the network caller.
|
Modifier and Type | Method and Description |
---|---|
Interceptor.Chain |
RealInterceptorChain.withConnectTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
RealInterceptorChain.withReadTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Interceptor.Chain |
RealInterceptorChain.withWriteTimeout(int timeout,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
Response |
BridgeInterceptor.intercept(Interceptor.Chain chain) |
Response |
CallServerInterceptor.intercept(Interceptor.Chain chain) |
Response |
RetryAndFollowUpInterceptor.intercept(Interceptor.Chain chain) |
Modifier and Type | Field and Description |
---|---|
private Interceptor.Chain |
Http2ExchangeCodec.chain |
Constructor and Description |
---|
Http2ExchangeCodec(OkHttpClient client,
RealConnection realConnection,
Interceptor.Chain chain,
Http2Connection connection) |
Modifier and Type | Method and Description |
---|---|
Response |
HttpLoggingInterceptor.intercept(Interceptor.Chain chain) |