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.Chain chain) |
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 request) |
Modifier and Type | Method and Description |
---|---|
Request |
Authenticator.authenticate(Route route,
Response response)
Returns a request that includes a credential to satisfy an authentication challenge in
response . |
Response.Builder |
Response.Builder.cacheResponse(Response cacheResponse) |
Response.Builder |
Response.Builder.networkResponse(Response networkResponse) |
void |
WebSocketListener.onFailure(WebSocket webSocket,
Throwable t,
Response response)
Invoked when a web socket has been closed due to an error reading from or writing to the
network.
|
void |
WebSocketListener.onOpen(WebSocket webSocket,
Response response)
Invoked when a web socket has been accepted by the remote peer and may begin transmitting
messages.
|
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)
Invoked immediately after receiving response headers.
|
Copyright © 2019. All rights reserved.