- All Known Subinterfaces:
- ServerResponseHeaders
HTTP Headers of a client response.
- 
Method SummaryModifier and TypeMethodDescriptiondefault List<HttpMediaType> Accepted patches.static ClientResponseHeadersCreate a new instance from headers parsed from client response.static ClientResponseHeaderscreate(Headers responseHeaders, ParserMode parserMode) Create a new instance from headers parsed from client response.default Optional<ZonedDateTime> expires()Optionally gets the value ofHeaderNames.EXPIRESheader.default Optional<ZonedDateTime> Optionally gets the value ofHeaderNames.LAST_MODIFIEDheader.location()Optionally gets the value ofHeaderNames.LOCATIONheader.Methods inherited from interface io.helidon.http.HeadersacceptedTypes, all, contains, contains, contentLength, contentType, find, first, get, isAccepted, size, stream, toMap, value, valuesMethods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Method Details- 
createCreate a new instance from headers parsed from client response. Strict media type parsing mode is used forContent-Typeheader.- Parameters:
- responseHeaders- client response headers
- Returns:
- immutable instance of client response HTTP headers
 
- 
createCreate a new instance from headers parsed from client response.- Parameters:
- responseHeaders- client response headers
- parserMode- media type parsing mode
- Returns:
- immutable instance of client response HTTP headers
 
- 
acceptPatchesAccepted patches.- Returns:
- list of accepted patches media types
 
- 
locationOptionally gets the value ofHeaderNames.LOCATIONheader.Used in redirection, or when a new resource has been created. - Returns:
- Location header value.
 
- 
lastModifiedOptionally gets the value ofHeaderNames.LAST_MODIFIEDheader.The last modified date for the requested object. - Returns:
- Last modified header value.
 
- 
expiresOptionally gets the value ofHeaderNames.EXPIRESheader.Gives the date/time after which the response is considered stale. - Returns:
- Expires header value.
 
 
-