| Modifier and Type | Method and Description |
|---|---|
Response |
Response.Builder.build() |
Response |
Response.cacheResponse() |
Response |
RealCall.execute() |
Response |
NewCall.execute()
立即调用请求,并阻塞,直到可以处理响应或出现错误.
|
Response |
Response.networkResponse() |
Response |
Response.priorResponse() |
| Modifier and Type | Method and Description |
|---|---|
Response.Builder |
Response.Builder.cacheResponse(Response cacheResponse) |
Response.Builder |
Response.Builder.networkResponse(Response networkResponse) |
void |
Callback.onResponse(NewCall call,
Response response)
|
Response.Builder |
Response.Builder.priorResponse(Response priorResponse) |
| Modifier and Type | Method and Description |
|---|---|
Response |
ConnectInterceptor.intercept(Interceptor.Chain chain) |
| Modifier and Type | Field and Description |
|---|---|
Response |
CacheStrategy.cacheResponse
缓存响应以返回或验证;如果这个调用不使用缓存,则为null
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
NetApiConvert.createResponseForCachePut(URI uri,
URLConnection urlConnection) |
Response |
InternalCache.get(Request request) |
Response |
CacheAdapter.get(Request request) |
Response |
CacheInterceptor.intercept(Interceptor.Chain chain) |
| Modifier and Type | Method and Description |
|---|---|
static CacheResponse |
NetApiConvert.createJavaCacheResponse(Response response) |
static boolean |
CacheStrategy.isCacheable(Response response,
Request request)
如果
response可以存储为以后服务另一个请求,则返回true |
CacheRequest |
InternalCache.put(Response response) |
CacheRequest |
CacheAdapter.put(Response response) |
void |
InternalCache.update(Response cached,
Response network)
通过使用来自
network的报头更新存储的缓存响应来处理条件请求
如果存储的响应在返回cached后发生了变化,这将不起任何作用 |
void |
CacheAdapter.update(Response cached,
Response network) |
| Constructor and Description |
|---|
Factory(long nowMillis,
Request request,
Response cacheResponse) |
| Modifier and Type | Method and Description |
|---|---|
Response |
HttpResponse.getResponse() |
Response |
FileInterceptor.intercept(Interceptor.Chain chain) |
| Constructor and Description |
|---|
HttpResponse(Response response) |
| Modifier and Type | Method and Description |
|---|---|
Response |
Interceptor.intercept(Interceptor.Chain chain) |
Response |
Interceptor.Chain.proceed(Request request) |
| Modifier and Type | Method and Description |
|---|---|
void |
EventListener.responseHeadersEnd(NewCall call,
Response response)
在接收响应标头后立即调用
这个方法总是在
EventListener.responseHeadersStart(org.aoju.bus.http.NewCall)之后调用 |
| Modifier and Type | Method and Description |
|---|---|
Response |
RetryAndFollowUp.intercept(Interceptor.Chain chain) |
Response |
CallServerInterceptor.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) |
void |
HttpURLConnection.onResponse(NewCall call,
Response response) |
ResponseBody |
HttpCodec.openResponseBody(Response response)
返回读取响应体的流.
|
ResponseBody |
Http2Codec.openResponseBody(Response response) |
ResponseBody |
Http1Codec.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 |
|---|---|
Request |
NetAuthenticator.authenticate(Route route,
Response response) |
Request |
Authenticator.authenticate(Route route,
Response response)
该请求包含满足
response中的身份验证挑战的凭据。如果无法满足挑战,则返回null. |
| Modifier and Type | Method and Description |
|---|---|
void |
RealWebSocket.failWebSocket(Exception e,
Response response) |
void |
WebSocketListener.onFailure(WebSocket webSocket,
Throwable throwable,
Response response)
当web套接字由于从网络读取或写入错误而关闭时调用。发出和传入的消息可能都丢失了。不再调用此侦听器.
|
void |
WebSocketListener.onOpen(WebSocket webSocket,
Response response)
当web socket被远程对等方接受并可以开始传输消息时调用
|
Copyright © 2020. All rights reserved.