-
- All Superinterfaces:
Headers
,Parameters
public interface WebClientResponseHeaders extends Headers
Headers that may be available on response from server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Long>
contentLength()
Content length of the response payload.Optional<MediaType>
contentType()
Returns content type of the response.Optional<ZonedDateTime>
date()
Returns value of header "Date" of the response.Optional<String>
etag()
Returns value of header "ETag" of the response.Optional<ZonedDateTime>
expires()
Returns value of header "Expires" of the response.Optional<ZonedDateTime>
lastModified()
Returns value of header "Last-Modified" of the response.Optional<URI>
location()
ReturnsURI
representation of "Location" header from the response.List<SetCookie>
setCookies()
ReturnsSetCookie
header of the response.List<String>
transferEncoding()
Transfer encoding of the response.-
Methods inherited from interface io.helidon.common.http.Parameters
add, add, addAll, computeIfAbsent, computeSingleIfAbsent, first, put, put, putAll, putIfAbsent, putIfAbsent, remove, toMap
-
-
-
-
Method Detail
-
setCookies
List<SetCookie> setCookies()
ReturnsSetCookie
header of the response.- Returns:
- set cookie header
-
location
Optional<URI> location()
ReturnsURI
representation of "Location" header from the response.- Returns:
- location header uri
-
lastModified
Optional<ZonedDateTime> lastModified()
Returns value of header "Last-Modified" of the response.- Returns:
- LAST_MODIFIED header value.
-
expires
Optional<ZonedDateTime> expires()
Returns value of header "Expires" of the response.- Returns:
- EXPIRES header value.
-
date
Optional<ZonedDateTime> date()
Returns value of header "Date" of the response.- Returns:
- DATE header value.
-
contentType
Optional<MediaType> contentType()
Returns content type of the response.- Returns:
- content type of the response
-
etag
Optional<String> etag()
Returns value of header "ETag" of the response.- Returns:
- ETAG header value.
-
contentLength
Optional<Long> contentLength()
Content length of the response payload.- Returns:
- content length
-
-