Uses of Class
org.miaixz.bus.http.bodys.ResponseBody
Packages that use ResponseBody
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 handling HTTP request and response bodies.
Provides a fluent, builder-based API (Httpz) for making HTTP requests, simplifying interactions with the core
Httpd client.-
Uses of ResponseBody in org.miaixz.bus.http
Fields in org.miaixz.bus.http declared as ResponseBodyModifier and TypeFieldDescriptionstatic final ResponseBodyBuilder.EMPTY_RESPONSEAn emptyResponseBodyinstance.Methods in org.miaixz.bus.http that return ResponseBodyModifier and TypeMethodDescriptionResponse.body()Returns the response body.Response.peekBody(long byteCount) Peeks at the response body content, up to a specified number of bytes.Methods in org.miaixz.bus.http with parameters of type ResponseBodyModifier and TypeMethodDescriptionResponse.Builder.body(ResponseBody body) Sets the response body. -
Uses of ResponseBody in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord that return ResponseBodyModifier and TypeMethodDescriptionExchange.openResponseBody(Response response) Opens a source to read the response body. -
Uses of ResponseBody in org.miaixz.bus.http.bodys
Subclasses of ResponseBody in org.miaixz.bus.http.bodysMethods in org.miaixz.bus.http.bodys that return ResponseBodyModifier and TypeMethodDescriptionstatic ResponseBodyResponseBody.create(org.miaixz.bus.core.lang.MediaType contentType, byte[] content) Creates a new response body from a byte array.static ResponseBodyResponseBody.create(org.miaixz.bus.core.lang.MediaType contentType, long length, org.miaixz.bus.core.io.source.BufferSource content) Creates a new response body from a data source.static ResponseBodyCreates a new response body from a string.static ResponseBodyResponseBody.create(org.miaixz.bus.core.lang.MediaType contentType, org.miaixz.bus.core.io.ByteString content) Creates a new response body from aByteString. -
Uses of ResponseBody in org.miaixz.bus.http.plugin.httpz
Subclasses of ResponseBody in org.miaixz.bus.http.plugin.httpzModifier and TypeClassDescriptionstatic classAResponseBodydecorator that reports download progress as the body is being read.Constructors in org.miaixz.bus.http.plugin.httpz with parameters of type ResponseBodyModifierConstructorDescriptionDownloadFileProgressResponseBody(ResponseBody body, ProgressListener progressListener) Constructs a new progress-reporting response body.