Uses of Class
org.miaixz.bus.http.Response
Packages that use Response
Package
Description
An HTTP client for Java applications.
Provides internal implementation details for the HTTP client, including connection management, streams, and routing.
Provides classes for caching HTTP responses.
Provides internal metrics and standards for the HTTP client.
Provides the internal implementation of the HTTP/1.1 and HTTP/2 protocols.
Provides the core implementation classes for the Httpv client, including task management, execution, data conversion,
and WebSocket support.
Provides a fluent, builder-based API (Httpz) for making HTTP requests, simplifying interactions with the core
Httpd client.Provides classes for creating and sending SOAP messages.
Provides classes for managing security-related aspects of HTTP, including TLS/SSL configuration, authentication, and
certificate pinning.
Provides the implementation of the WebSocket protocol (RFC 6455) for creating and managing WebSocket connections.
-
Uses of Response in org.miaixz.bus.http
Methods in org.miaixz.bus.http that return ResponseModifier and TypeMethodDescriptionResponse.Builder.build()Builds a newResponseinstance.Response.cacheResponse()Returns the cache response.NewCall.execute()Invokes the request immediately, and blocks until the response can be processed or is in error.RealCall.execute()Executes the request synchronously.RealCall.getResponseWithInterceptorChain()Gets the response by processing the request through the interceptor chain.Response.networkResponse()Returns the network response.Response.priorResponse()Returns the prior response.Methods in org.miaixz.bus.http with parameters of type ResponseModifier and TypeMethodDescriptionResponse.Builder.cacheResponse(Response cacheResponse) Sets the cache response.static longHeaders.contentLength(Response response) Gets the Content-Length of a response.static booleanChecks if the response includes a body.static booleanHeaders.hasVaryAll(Response response) Checks for the presence of a Vary: * header.Response.Builder.networkResponse(Response networkResponse) Sets the network response.default voidCallback.onResponse(NewCall call, Response response) Called when the remote server returns an HTTP response.default voidCallback.onResponse(NewCall newCall, Response response, String id) Called when the request is successful, including a request ID to differentiate multiple requests.Response.Builder.priorResponse(Response priorResponse) Sets the prior response.static HeadersHeaders.varyHeaders(Response response) Gets the request headers that affect the response body.static booleanHeaders.varyMatches(Response cachedResponse, Headers cachedRequest, Request newRequest) Checks if the Vary header matches. -
Uses of Response in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord that return ResponseModifier and TypeMethodDescriptionIntercepts the request to establish a connection and create an exchange.Methods in org.miaixz.bus.http.accord with parameters of type ResponseModifier and TypeMethodDescriptionExchange.openResponseBody(Response response) Opens a source to read the response body.voidExchange.responseHeadersEnd(Response response) Notifies the event listener that the response headers have been read. -
Uses of Response in org.miaixz.bus.http.cache
Fields in org.miaixz.bus.http.cache declared as ResponseModifier and TypeFieldDescriptionfinal ResponseCacheStrategy.cacheResponseThe cached response to return or validate; null if this call does not use the cache.Methods in org.miaixz.bus.http.cache that return ResponseModifier and TypeMethodDescriptionReturns the cached response for the givenrequest, or null if no cached response exists or is not suitable.Methods in org.miaixz.bus.http.cache with parameters of type ResponseModifier and TypeMethodDescriptionstatic booleanCacheStrategy.isCacheable(Response response, Request request) Returns true ifresponsecan be stored to later serve another request.Stores the givenresponsein the cache and returns aCacheRequestto write the response body, or null if the response cannot be cached.voidUpdates the stored cached response with headers from the newnetworkresponse.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 TypeMethodDescriptionIntercepts the givenchainto process a network request.Proceeds with the request to the next interceptor in the chain.Methods in org.miaixz.bus.http.metric with parameters of type Response -
Uses of Response in org.miaixz.bus.http.metric.http
Methods in org.miaixz.bus.http.metric.http that return ResponseModifier and TypeMethodDescriptionIntercepts the request to add necessary headers, handle cookies, and manage content encoding.Intercepts the request to make a network call to the server.RealInterceptorChain.proceed(Request request, Transmitter transmitter, Exchange exchange) Methods in org.miaixz.bus.http.metric.http with parameters of type ResponseModifier and TypeMethodDescriptionstatic StatusLineCreates aStatusLinefrom aResponse.org.miaixz.bus.core.io.source.SourceHttp1Codec.openResponseBodySource(Response response) org.miaixz.bus.core.io.source.SourceHttp2Codec.openResponseBodySource(Response response) Opens a source to read the response body.org.miaixz.bus.core.io.source.SourceHttpCodec.openResponseBodySource(Response response) Opens a source to read the response body.longHttp1Codec.reportedContentLength(Response response) longHttp2Codec.reportedContentLength(Response response) Reports the content length of the response.longHttpCodec.reportedContentLength(Response response) Returns the reported content length of the 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 TypeMethodDescriptionExtracts the character set from an HTTP response.static CoverResultCreates aCoverResultfrom a rawResponse.static CoverResultCoverResult.of(Response response, CoverTasks.Executor executor) Creates a fully functionalCoverResultfrom a rawResponseand a task executor.voidvoidvoidSets the result to a success state with a response.Constructors in org.miaixz.bus.http.plugin.httpv with parameters of type ResponseModifierConstructorDescriptionReal(CoverHttp<?> coverHttp, Response response, CoverTasks.Executor executor) Constructs a result from a successful response.ResultBody(CoverHttp<?> coverHttp, Response response, CoverTasks.Executor executor) Constructs a new ResultBody. -
Uses of Response in org.miaixz.bus.http.plugin.httpz
Methods in org.miaixz.bus.http.plugin.httpz that return ResponseModifier and TypeMethodDescriptionRequestCall.execute()Executes the HTTP request synchronously.Intercepts the network response to wrap the original response body with a progress-monitoring body.Methods in org.miaixz.bus.http.plugin.httpz with parameters of type ResponseModifier and TypeMethodDescriptionvoidFileCallback.onResponse(NewCall call, Response response, String id) Handles the successful HTTP response.voidTextCallback.onResponse(NewCall call, Response response, String id) Handles the successful HTTP response by consuming the response body as a string and passing it to theTextCallback.onSuccess(NewCall, String, String)method. -
Uses of Response in org.miaixz.bus.http.plugin.soap
Methods in org.miaixz.bus.http.plugin.soap that return ResponseModifier and TypeMethodDescriptionSoapBuilder.sendForResponse()Sends the request and gets an asynchronous 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) Returns a request that includes a credential to satisfy an authentication challenge inresponse.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) Notifies the listener of a failure and closes the connection.voidInvoked when a web socket has been closed due to an error reading from or writing to the network.voidInvoked when a web socket has been accepted by the remote peer and may begin transmitting messages.