Uses of Class
org.miaixz.bus.http.Response
Packages that use Response
Package
Description
Java应用的HTTP客户端
-
Uses of Response in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return ResponseModifier and TypeMethodDescriptionResponse.Builder.build()Response.cacheResponse()Returns the raw response received from the cache.NewCall.execute()立即调用请求,并阻塞,直到可以处理响应或出现错误.RealCall.execute()RealCall.getResponseWithInterceptorChain()Response.networkResponse()Returns the raw response received from the network.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.Methods in org.miaixz.bus.http with parameters of type ResponseModifier and TypeMethodDescriptionResponse.Builder.cacheResponse(Response cacheResponse) static longHeaders.contentLength(Response response) static booleanReturns true if the response must have a (possibly 0-length) body.static booleanHeaders.hasVaryAll(Response response) Returns true if a Vary header contains an asterisk.Response.Builder.networkResponse(Response networkResponse) default voidCallback.onResponse(NewCall call, Response response) 当远程服务器成功返回HTTP响应时调用。回调可以继续使用body读取响应体响应仍然是 活动的直到它的响应体是closed 回调的接收者可以使用另一个线程上的响应体 注意,传输层的成功(接收HTTP响应代码、报头和正文)不一定表示应用程序层的 成功:response可能仍然表示不满意的HTTP响应代码,如404或500default voidCallback.onResponse(NewCall newCall, Response response, String id) 响应回调信息Response.Builder.priorResponse(Response priorResponse) static HeadersHeaders.varyHeaders(Response response) Returns the subset of the headers inresponse's request that impact the content of response's body.static booleanHeaders.varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest) Returns true if none of the Vary headers have changed betweencachedRequestandnewRequest. -
Uses of Response in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord that return ResponseMethods in org.miaixz.bus.http.accord with parameters of type ResponseModifier and TypeMethodDescriptionExchange.openResponseBody(Response response) voidExchange.responseHeadersEnd(Response response) -
Uses of Response in org.miaixz.bus.http.cache
Fields in org.miaixz.bus.http.cache declared as ResponseModifier and TypeFieldDescriptionfinal ResponseCacheStrategy.cacheResponse缓存响应以返回或验证;如果这个调用不使用缓存,则为nullMethods in org.miaixz.bus.http.cache that return ResponseMethods in org.miaixz.bus.http.cache with parameters of type ResponseModifier and TypeMethodDescriptionstatic booleanCacheStrategy.isCacheable(Response response, Request request) 如果response可以存储为以后服务另一个请求,则返回truevoid通过使用来自network的报头更新存储的缓存响应来处理条件请求 如果存储的响应在返回cached后发生了变化,这将不起任何作用Constructors in org.miaixz.bus.http.cache with parameters of type Response -
Uses of Response in org.miaixz.bus.http.metric
Methods in org.miaixz.bus.http.metric that return ResponseMethods in org.miaixz.bus.http.metric with parameters of type ResponseModifier and TypeMethodDescriptionabstract ExchangevoidEventListener.responseHeadersEnd(NewCall call, Response response) 在接收响应标头后立即调用 这个方法总是在EventListener.responseHeadersStart(org.miaixz.bus.http.NewCall)之后调用 -
Uses of Response in org.miaixz.bus.http.metric.http
Methods in org.miaixz.bus.http.metric.http that return ResponseModifier and TypeMethodDescriptionBridgeInterceptor.intercept(Interceptor.Chain chain) CallServerInterceptor.intercept(Interceptor.Chain chain) RetryAndFollowUp.intercept(Interceptor.Chain chain) RealInterceptorChain.proceed(Request request, Transmitter transmitter, Exchange exchange) Methods in org.miaixz.bus.http.metric.http with parameters of type ResponseModifier and TypeMethodDescriptionstatic StatusLineorg.miaixz.bus.core.io.source.SourceHttp1Codec.openResponseBodySource(Response response) org.miaixz.bus.core.io.source.SourceHttp2Codec.openResponseBodySource(Response response) org.miaixz.bus.core.io.source.SourceHttpCodec.openResponseBodySource(Response response) longHttp1Codec.reportedContentLength(Response response) longHttp2Codec.reportedContentLength(Response response) longHttpCodec.reportedContentLength(Response response) voidHttp1Codec.skipConnectBody(Response response) The response body from a CONNECT should be empty, but if it is not then we should consume it before proceeding. -
Uses of Response in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv that return ResponseMethods in org.miaixz.bus.http.plugin.httpv with parameters of type ResponseModifier and TypeMethodDescriptionstatic CoverResult构造一个 Results 此方法构造的 Results 不可设置进度回调,不可进行下载操作! 若需要,请使用方法:CoverResult.of(Response, CoverTasks.Executor)static CoverResultCoverResult.of(Response response, CoverTasks.Executor executor) 构造一个 ResultsvoidvoidvoidConstructors in org.miaixz.bus.http.plugin.httpv with parameters of type ResponseModifierConstructorDescriptionReal(CoverHttp<?> coverHttp, Response response, CoverTasks.Executor executor) ResultBody(CoverHttp<?> coverHttp, Response response, CoverTasks.Executor executor) -
Uses of Response in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return ResponseModifier and TypeMethodDescriptionRequestCall.execute()FileInterceptor.intercept(Interceptor.Chain chain) Methods in org.miaixz.bus.http.plugin.httpz with parameters of type ResponseModifier and TypeMethodDescriptionvoidFileCallback.onResponse(NewCall call, Response response, String id) voidTextCallback.onResponse(NewCall call, Response response, String id) -
Uses of Response in org.miaixz.bus.http.secure
Methods in org.miaixz.bus.http.secure with parameters of type ResponseModifier and TypeMethodDescriptionAuthenticator.authenticate(Route route, Response response) 该请求包含满足response中的身份验证挑战的凭据。如果无法满足挑战,则返回null 该路线是最好的努力,它目前可能不总是提供,即使在逻辑上可用 在应用程序拦截器中手动重用身份验证器时,例如在实现特定于客户机的重试时,也可能不提供此功能NetAuthenticator.authenticate(Route route, Response response) -
Uses of Response in org.miaixz.bus.http.socket
Methods in org.miaixz.bus.http.socket with parameters of type ResponseModifier and TypeMethodDescriptionvoidRealWebSocket.failWebSocket(Exception e, Response response) void当web套接字由于从网络读取或写入错误而关闭时调用。发出和传入的消息可能都丢失了。不再调用此侦听器void当web socket被远程对等方接受并可以开始传输消息时调用