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 实例。Response.cacheResponse()获取缓存响应。NewCall.execute()立即调用请求,并阻塞,直到可以处理响应或出现错误.RealCall.execute()同步执行请求RealCall.getResponseWithInterceptorChain()通过拦截器链获取响应Response.networkResponse()获取网络响应。Response.priorResponse()获取前一个响应。Methods in org.miaixz.bus.http with parameters of type ResponseModifier and TypeMethodDescriptionResponse.Builder.cacheResponse(Response cacheResponse) 设置缓存响应。static longHeaders.contentLength(Response response) 获取响应的 Content-Lengthstatic boolean检查响应是否包含消息体static booleanHeaders.hasVaryAll(Response response) 检查是否存在 Vary: * 头部Response.Builder.networkResponse(Response networkResponse) 设置网络响应。default voidCallback.onResponse(NewCall call, Response response) 请求成功时的回调default voidCallback.onResponse(NewCall newCall, Response response, String id) 请求成功时的回调(带请求标识)Response.Builder.priorResponse(Response priorResponse) 设置前一个响应。static HeadersHeaders.varyHeaders(Response response) 获取影响响应体的请求头部static booleanHeaders.varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest) 检查 Vary 头部是否匹配 -
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) 处理 WebSocket 失败void当web套接字由于从网络读取或写入错误而关闭时调用。void当web socket被远程对等方接受并可以开始传输消息时调用