Uses of Class
org.miaixz.bus.http.Headers
Packages that use Headers
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 classes for caching HTTP responses.
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.
-
Uses of Headers in org.miaixz.bus.http
Fields in org.miaixz.bus.http declared as HeadersModifier and TypeFieldDescriptionstatic final HeadersBuilder.EMPTY_HEADERSAn emptyHeadersinstance.Methods in org.miaixz.bus.http that return HeadersModifier and TypeMethodDescriptionHeaders.Builder.build()Builds a Headers instance.Request.headers()Returns all headers for this request.Response.headers()Returns all response headers.static HeadersCreates a Headers instance from an array of names and values.static HeadersCreates a Headers instance from a map.static HeadersBuilder.toHeaders(List<Http2Header> headerBlock) Converts a list of HTTP/2 headers to aHeadersobject.Response.trailers()Returns the trailer headers of the response.static HeadersHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) Gets the request headers that affect the response body.static HeadersHeaders.varyHeaders(Response response) Gets the request headers that affect the response body.Methods in org.miaixz.bus.http with parameters of type HeadersModifier and TypeMethodDescriptionAdds all headers from a Headers instance.static longHeaders.contentLength(Headers headers) Gets the Content-Length from headers.static booleanHeaders.hasVaryAll(Headers responseHeaders) Checks for the presence of a Vary: * header.Sets all headers, replacing any existing headers.Sets all headers, replacing any existing headers.Parses allSet-Cookieheaders from an HTTP response.Headers.parseChallenges(Headers responseHeaders, String headerName) Parses RFC 7235 challenges.static voidHeaders.receiveHeaders(CookieJar cookieJar, UnoUrl url, Headers headers) Handles received Cookie headers.static List<Http2Header> Builder.toHeaderBlock(Headers headers) Converts aHeadersobject to a list of HTTP/2 headers.Headers.varyFields(Headers responseHeaders) Gets the set of Vary fields.static HeadersHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) 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 Headers in org.miaixz.bus.http.accord
Methods in org.miaixz.bus.http.accord that return Headers -
Uses of Headers in org.miaixz.bus.http.bodys
Methods in org.miaixz.bus.http.bodys that return HeadersMethods in org.miaixz.bus.http.bodys with parameters of type HeadersModifier and TypeMethodDescriptionMultipartBody.Builder.addPart(Headers headers, RequestBody body) Adds a part with the given headers and body.static MultipartBody.PartMultipartBody.Part.create(Headers headers, RequestBody body) Creates a new part with the given headers and body. -
Uses of Headers in org.miaixz.bus.http.cache
Methods in org.miaixz.bus.http.cache with parameters of type Headers -
Uses of Headers in org.miaixz.bus.http.metric.http
Methods in org.miaixz.bus.http.metric.http that return HeadersModifier and TypeMethodDescriptionHttp2Stream.takeHeaders()Removes and returns the stream's received response headers, blocking if necessary until headers have been received.Http1Codec.trailers()Http2Codec.trailers()Returns the trailers of the response.Http2Stream.trailers()Returns the trailers.HttpCodec.trailers()Returns the trailer headers after the HTTP response.Methods in org.miaixz.bus.http.metric.http with parameters of type HeadersModifier and TypeMethodDescriptionvoidHttp2Stream.enqueueTrailers(Headers trailers) Enqueues trailers to be sent after the last data frame of this stream.static Response.BuilderHttp2Codec.readHttp2HeadersList(Headers headerBlock, org.miaixz.bus.core.net.Protocol protocol) Creates aResponse.Builderfrom a list of HTTP/2 headers.voidHttp1Codec.writeRequest(Headers headers, String requestLine) Returns bytes of a request header for sending on an HTTP transport. -
Uses of Headers in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv that return HeadersModifier and TypeMethodDescriptionCoverResult.getHeaders()Retrieves the headers from the HTTP response.CoverResult.Real.getHeaders()