Interface HttpResponse


public interface HttpResponse
An interface of an HTTP response object.
  • Method Details

    • status

      HttpStatus status()
      Returns the status of the response.
      Returns:
      The status.
      See Also:
    • headers

      Headers headers()
      Returns the response headers.
      Returns:
      A Headers.
    • responseEntity

      HttpResponseEntity responseEntity()
      Returns an HttpResponseEntity representing the data in the response.
      Returns:
      An HttpResponseEntity.
    • requestUri

      URI requestUri()
      Returns the URI the request was originally sent to.
      Returns:
      The URI of the request.
      See Also:
    • responseUri

      URI responseUri()
      Returns the URI of the server instance that actually handled the request. If no redirects have been followed this equals the URI passed to the execute methods of HttpRequestExecutor otherwise it's the URI of the last location that didn't return a redirect.
      Returns:
      The URI of the responding instance.
      See Also: