Interface Response<T>

  • Type Parameters:
    T - the type of the response body

    public interface Response<T>
    An HTTP Response.

    This interface provides a generic API for interacting with HTTP responses.

    • Method Detail

      • body

        T body()
        The body of the HTTP response.
        Returns:
        the response body
      • headers

        Headers headers()
        The headers from this HTTP response.
        Returns:
        the response headers
      • uri

        URI uri()
        The URI from which the response was received.
        Returns:
        the response URI
      • statusCode

        int statusCode()
        The status code of an HTTP response.
        Returns:
        the response code