| Package | Description |
|---|---|
| okhttp3 | |
| okhttp3.internal | |
| okhttp3.internal.http |
| Modifier and Type | Method and Description |
|---|---|
Response |
Response.Builder.build()
|
Response |
Response.cacheResponse()
Returns the raw response received from the cache.
|
Response |
Call.execute()
Invokes the request immediately, and blocks until the response can be processed or is in error.
|
Response |
Interceptor.intercept(Interceptor
|
Response |
Response.networkResponse()
Returns the raw response received from the network.
|
Response |
Response.priorResponse()
Returns the response for the HTTP redirect or authorization challenge that triggered this response, or null if this response wasn't triggered by an automatic retry.
|
Response |
Interceptor.Chain.proceed(Request
|
| Modifier and Type | Method and Description |
|---|---|
Request |
Authenticator.authenticate(Route
Returns a request that includes a credential to satisfy an authentication challenge in
response.
|
Response |
Response.Builder.cacheResponse(Response
|
Response |
Response.Builder.networkResponse(Response
|
void |
Callback.onResponse(Call
Called when the HTTP response was successfully returned by the remote server.
|
Response |
Response.Builder.priorResponse(Response
|
| Modifier and Type | Method and Description |
|---|---|
Response |
InternalCache.get(Request
|
| Modifier and Type | Method and Description |
|---|---|
CacheRequest |
InternalCache.put(Response
|
void |
InternalCache.update(Response
Handles a conditional request hit by updating the stored cache response with the headers from
network.
|
| Modifier and Type | Field and Description |
|---|---|
Response |
CacheStrategy.cacheResponse
The cached response to return or validate; or null if this call doesn't use a cache.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
HttpEngine.getResponse()
Returns the engine's response.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
OkHeaders.contentLength(Response
|
static StatusLine |
StatusLine.get(Response
|
static boolean |
HttpEngine.hasBody(Response
Returns true if the response must have a (possibly 0-length) body.
|
static boolean |
OkHeaders.hasVaryAll(Response
Returns true if a Vary header contains an asterisk.
|
static boolean |
CacheStrategy.isCacheable(Response
Returns true if
response can be stored to later serve another request.
|
ResponseBody |
Http2xStream.openResponseBody(Response
|
ResponseBody |
Http1xStream.openResponseBody(Response
|
ResponseBody |
HttpStream.openResponseBody(Response
Returns a stream that reads the response body.
|
static Headers |
OkHeaders.varyHeaders(Response
Returns the subset of the headers in
response's request that impact the content of response's body.
|
static boolean |
OkHeaders.varyMatches(Response
Returns true if none of the Vary headers have changed between
cachedRequest and
newRequest.
|
| Constructor and Description | |
|---|---|
Factory(long nowMillis, Request
|
|
HttpEngine(OkHttpClient
|