- All Known Subinterfaces:
ServerResponseHeaders
HTTP Headers of a client response.
-
Method Summary
Modifier 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.Headers
acceptedTypes, all, contains, contains, contentLength, contentType, find, first, get, isAccepted, size, stream, toMap, value, valuesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
create
Create 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
-
create
Create a new instance from headers parsed from client response.- Parameters:
responseHeaders- client response headersparserMode- media type parsing mode- Returns:
- immutable instance of client response HTTP headers
-
acceptPatches
Accepted patches.- Returns:
- list of accepted patches media types
-
location
Optionally gets the value ofHeaderNames.LOCATIONheader.Used in redirection, or when a new resource has been created.
- Returns:
- Location header value.
-
lastModified
Optionally gets the value ofHeaderNames.LAST_MODIFIEDheader.The last modified date for the requested object.
- Returns:
- Last modified header value.
-
expires
Optionally gets the value ofHeaderNames.EXPIRESheader.Gives the date/time after which the response is considered stale.
- Returns:
- Expires header value.
-