- All Known Subinterfaces:
ServerResponseHeaders
HTTP Headers of a client response.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List
<HttpMediaType> Accepted patches.static ClientResponseHeaders
Create a new instance from headers parsed from client response.static ClientResponseHeaders
create
(Headers responseHeaders, ParserMode parserMode) Create a new instance from headers parsed from client response.default Optional
<ZonedDateTime> expires()
Optionally gets the value ofHeaderNames.EXPIRES
header.default Optional
<ZonedDateTime> Optionally gets the value ofHeaderNames.LAST_MODIFIED
header.location()
Optionally gets the value ofHeaderNames.LOCATION
header.Methods inherited from interface io.helidon.http.Headers
acceptedTypes, all, contains, contains, contentLength, contentType, first, get, isAccepted, size, stream, toMap, value, values
Methods 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-Type
header.- 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.LOCATION
header.Used in redirection, or when a new resource has been created.
- Returns:
- Location header value.
-
lastModified
Optionally gets the value ofHeaderNames.LAST_MODIFIED
header.The last modified date for the requested object.
- Returns:
- Last modified header value.
-
expires
Optionally gets the value ofHeaderNames.EXPIRES
header.Gives the date/time after which the response is considered stale.
- Returns:
- Expires header value.
-