Package io.helidon.reactive.webclient
Interface WebClientResponseHeaders
- All Superinterfaces:
ClientResponseHeaders,Headers,Iterable<Http.HeaderValue>
Headers that may be available on response from server.
-
Method Summary
Modifier and TypeMethodDescriptionContent length of the response payload.Returns content type of the response.date()Returns value of headerHttp.Header.DATEof the response.etag()Returns value of headerHttp.Header.ETAGof the response.expires()Returns value of headerHttp.Header.EXPIRESof the response.Returns value of headerHttp.Header.LAST_MODIFIEDof the response.location()ReturnsURIrepresentation ofHttp.Header.LOCATIONheader from the response.ReturnsSetCookieheader of the response.Transfer encoding of the response.Methods inherited from interface io.helidon.common.http.ClientResponseHeaders
acceptPatchesMethods inherited from interface io.helidon.common.http.Headers
acceptedTypes, all, all, contains, contains, first, get, isAccepted, size, toMap, value, valuesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
setCookies
ReturnsSetCookieheader of the response.- Returns:
- set cookie header
-
location
ReturnsURIrepresentation ofHttp.Header.LOCATIONheader from the response.- Specified by:
locationin interfaceClientResponseHeaders- Returns:
- location header uri
-
lastModified
Optional<ZonedDateTime> lastModified()Returns value of headerHttp.Header.LAST_MODIFIEDof the response.- Specified by:
lastModifiedin interfaceClientResponseHeaders- Returns:
- LAST_MODIFIED header value.
-
expires
Optional<ZonedDateTime> expires()Returns value of headerHttp.Header.EXPIRESof the response.- Specified by:
expiresin interfaceClientResponseHeaders- Returns:
- EXPIRES header value.
-
date
Optional<ZonedDateTime> date()Returns value of headerHttp.Header.DATEof the response.- Returns:
- DATE header value.
-
contentType
Optional<HttpMediaType> contentType()Returns content type of the response.- Specified by:
contentTypein interfaceHeaders- Returns:
- content type of the response
- See Also:
-
etag
Returns value of headerHttp.Header.ETAGof the response.- Returns:
- ETAG header value.
-
contentLength
OptionalLong contentLength()Content length of the response payload.- Specified by:
contentLengthin interfaceHeaders- Returns:
- content length
- See Also:
-
transferEncoding
Transfer encoding of the response.- Returns:
- transfer encoding
-