Uses of Class
org.miaixz.bus.http.Headers
Packages that use Headers
Package
Description
Java应用的HTTP客户端
-
Uses of Headers in org.miaixz.bus.http
Fields in org.miaixz.bus.http declared as HeadersMethods in org.miaixz.bus.http that return HeadersModifier and TypeMethodDescriptionHeaders.Builder.build()Request.headers()Response.headers()static HeadersReturns headers for the alternating header names and values.static HeadersReturns headers for the header names and values in theMap.static HeadersBuilder.toHeaders(List<Headers.Header> headerBlock) Response.trailers()Returns the trailers after the HTTP response, which may be empty.static HeadersHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) Returns the subset of the headers inrequestHeadersthat impact the content of response's body.static HeadersHeaders.varyHeaders(Response response) Returns the subset of the headers inresponse's request that impact the content of response's body.Methods in org.miaixz.bus.http with parameters of type HeadersModifier and TypeMethodDescriptionAdds all headers from an existing collection.static longHeaders.contentLength(Headers headers) static booleanHeaders.hasVaryAll(Headers responseHeaders) Returns true if a Vary header contains an asterisk.Removes all headers on this builder and addsheaders.Removes all headers on this builder and addsheaders.Returns all of the cookies from a set of HTTP response headers.Headers.parseChallenges(Headers responseHeaders, String headerName) Parse RFC 7235 challenges.static voidHeaders.receiveHeaders(CookieJar cookieJar, UnoUrl url, Headers headers) static List<Headers.Header> Builder.toHeaderBlock(Headers headers) Headers.varyFields(Headers responseHeaders) Returns the names of the request headers that need to be checked for equality when caching.static HeadersHeaders.varyHeaders(Headers requestHeaders, Headers responseHeaders) Returns the subset of the headers inrequestHeadersthat 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 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) 增加part至请求体static MultipartBody.PartMultipartBody.Part.create(Headers headers, RequestBody body) -
Uses of Headers in org.miaixz.bus.http.cache
Methods in org.miaixz.bus.http.cache with parameters of type HeadersModifier and TypeMethodDescriptionstatic CacheControl返回headers的缓存指令。 如果存在Cache-Control和Pragma头文件,则会同时显示它们 -
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()Http2Stream.trailers()Returns the trailers.HttpCodec.trailers()在HTTP响应之后返回Methods in org.miaixz.bus.http.metric.http with parameters of type HeadersModifier and TypeMethodDescriptionvoidHttp2Stream.enqueueTrailers(Headers trailers) static Response.BuilderHttp2Codec.readHttp2HeadersList(Headers headerBlock, Protocol protocol) Returns headers for a name value block containing an HTTP/2 response.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 Headers