Uses of Class
org.miaixz.bus.http.Response
Packages that use Response
Package
Description
Java应用的HTTP客户端
内部实现及规则
请求缓存支持
内部标准及逻辑
Http 内部逻辑
Httpv 实现
Httpz 实现
SOAP 实现
HTTP 安全
web socket支持
-
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响应时调用。default 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 ResponseModifier and TypeMethodDescriptionMethods 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 ResponseModifier and TypeMethodDescription网络请求拦截Methods 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 TypeMethodDescriptionRealInterceptorChain.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 不可设置进度回调,不可进行下载操作!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 ResponseMethods 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.plugin.soap
Methods in org.miaixz.bus.http.plugin.soap that return Response -
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中的身份验证挑战的凭据。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被远程对等方接受并可以开始传输消息时调用