- All Superinterfaces:
Headers,Iterable<Http.HeaderValue>
- All Known Subinterfaces:
ResponseHeaders,ServerResponseHeaders,WebClientResponseHeaders
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.default Optional<ZonedDateTime>expires()Optionally gets the value ofHttp.Header.EXPIRESheader.default Optional<ZonedDateTime>Optionally gets the value ofHttp.Header.LAST_MODIFIEDheader.location()Optionally gets the value ofHttp.Header.LOCATIONheader.Methods inherited from interface io.helidon.common.http.Headers
acceptedTypes, all, all, contains, contains, contentLength, contentType, first, get, isAccepted, size, 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.- Parameters:
responseHeaders- client response headers- Returns:
- immutable instance of client response HTTP headers
-
acceptPatches
Accepted patches.- Returns:
- list of accepted patches media types
-
location
Optionally gets the value ofHttp.Header.LOCATIONheader.Used in redirection, or when a new resource has been created.
- Returns:
- Location header value.
-
lastModified
Optionally gets the value ofHttp.Header.LAST_MODIFIEDheader.The last modified date for the requested object.
- Returns:
- Last modified header value.
-
expires
Optionally gets the value ofHttp.Header.EXPIRESheader.Gives the date/time after which the response is considered stale.
- Returns:
- Expires header value.
-