Interface WebClientResponseHeaders

  • All Superinterfaces:
    Headers, Parameters

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

      • 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
      • 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