Interface HttpResponseHead

  • All Known Subinterfaces:
    HttpClientResponse, HttpResponse<T>

    public interface HttpResponseHead
    The state of the HTTP response head:
    • Status code / Message
    • Headers
    • Method Detail

      • version

        HttpVersion version()
        Returns:
        the version of the response
      • statusCode

        int statusCode()
        Returns:
        the status code of the response
      • statusMessage

        String statusMessage()
        Returns:
        the status message of the response
      • headers

        MultiMap headers()
        Returns:
        the headers
      • getHeader

        String getHeader​(String headerName)
        Return the first header value with the specified name
        Parameters:
        headerName - the header name
        Returns:
        the header value
      • getHeader

        String getHeader​(CharSequence headerName)
        Return the first header value with the specified name
        Parameters:
        headerName - the header name
        Returns:
        the header value
      • cookies

        List<String> cookies()
        Returns:
        the Set-Cookie headers (including trailers)