org.springframework.web.reactive.function.client

Interface ClientResponse.Headers

    • Method Detail

      • contentLength

        java.util.OptionalLong contentLength()
        Return the length of the body in bytes, as specified by the Content-Length header.
      • contentType

        java.util.Optional<MediaType> contentType()
        Return the media type of the body, as specified by the Content-Type header.
      • header

        java.util.List<java.lang.String> header(java.lang.String headerName)
        Return the header value(s), if any, for the header of the given name.

        Return an empty list if no header values are found.

        Parameters:
        headerName - the header name