| Modifier and Type | Method and Description |
|---|---|
Response |
Response.Builder.build() |
Response |
Response.cacheResponse() |
Response |
Call.execute()
Invokes the request immediately, and blocks until the response can be processed or is in
error.
|
Response |
Interceptor.intercept(Interceptor.Chain chain) |
Response |
Response.networkResponse() |
Response |
Response.priorResponse() |
Response |
Interceptor.Chain.proceed(Request request) |
| Modifier and Type | Method and Description |
|---|---|
Request |
Authenticator.authenticate(Route route,
Response response) |
Response.Builder |
Response.Builder.cacheResponse(Response cacheResponse) |
Response.Builder |
Response.Builder.networkResponse(Response networkResponse) |
void |
SocketListener.onFailure(WebSocket webSocket,
Throwable t,
Response response) |
void |
SocketListener.onOpen(WebSocket webSocket,
Response response) |
void |
Callback.onResponse(Call call,
Response response)
Called when the HTTP response was successfully returned by the remote server.
|
Response.Builder |
Response.Builder.priorResponse(Response priorResponse) |
void |
EventListener.responseHeadersEnd(Call call,
Response response) |
| 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 |
InternalCache.get(Request request) |
Response |
CacheInterceptor.intercept(Interceptor.Chain chain) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CacheStrategy.isCacheable(Response response,
Request request) |
CacheRequest |
InternalCache.put(Response response) |
void |
InternalCache.update(Response cached,
Response network) |
| Constructor and Description |
|---|
Factory(long nowMillis,
Request request,
Response cacheResponse) |
| Modifier and Type | Method and Description |
|---|---|
Response |
ConnectInterceptor.intercept(Interceptor.Chain chain) |
| Modifier and Type | Method and Description |
|---|---|
Response |
CallServerInterceptor.intercept(Interceptor.Chain chain) |
Response |
RetryAndFollowUpInterceptor.intercept(Interceptor.Chain chain) |
Response |
BridgeInterceptor.intercept(Interceptor.Chain chain) |
Response |
RealInterceptorChain.proceed(Request request) |
Response |
RealInterceptorChain.proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
static long |
HttpHeaders.contentLength(Response response) |
static StatusLine |
StatusLine.get(Response response) |
static boolean |
HttpHeaders.hasBody(Response response) |
static boolean |
HttpHeaders.hasVaryAll(Response response) |
ResponseBody |
HttpCodec.openResponseBody(Response response) |
static Headers |
HttpHeaders.varyHeaders(Response response) |
static boolean |
HttpHeaders.varyMatches(Response cachedResponse,
Headers cachedRequest,
Request newRequest) |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Http1Codec.openResponseBody(Response response) |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Http2Codec.openResponseBody(Response response) |
| Modifier and Type | Method and Description |
|---|---|
void |
RealWebSocket.failWebSocket(Exception e,
Response response) |
Copyright © 2019. All rights reserved.