Interface WebClientResponseHeaders

All Superinterfaces:
Headers, Iterable<Map.Entry<String,List<String>>>, Parameters

public interface WebClientResponseHeaders extends Headers
Headers that may be available on response from server.
  • Method Details

    • setCookies

      List<SetCookie> setCookies()
      Returns SetCookie header of the response.
      Returns:
      set cookie header
    • location

      Optional<URI> location()
      Returns URI 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

      Returns value of header "Expires" of the response.
      Returns:
      EXPIRES header value.
    • 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
    • transferEncoding

      List<String> transferEncoding()
      Transfer encoding of the response.
      Returns:
      transfer encoding