Interface Response.ResponseInfo

Enclosing interface:
Response<T>

public static interface Response.ResponseInfo
Initial response info supplied to a Response.BodyHandler before the body is processed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the response body as a byte buffer.
    Retrieve the response headers.
    int
    Retrieve the status code from the response.
    uri()
    Retrieve the URI of the response.
  • Method Details

    • headers

      Headers headers()
      Retrieve the response headers.
      Returns:
      the response headers
    • uri

      URI uri()
      Retrieve the URI of the response.
      Returns:
      the response URI
    • statusCode

      int statusCode()
      Retrieve the status code from the response.
      Returns:
      the response status
    • body

      ByteBuffer body()
      Retrieve the response body as a byte buffer.
      Returns:
      the body