Package org.dmfs.httpessentials.client
Interface HttpResponse
public interface HttpResponse
An interface of an HTTP response object.
-
Method Summary
Modifier and TypeMethodDescriptionheaders()Returns the response headers.Returns theURIthe request was originally sent to.Returns anHttpResponseEntityrepresenting the data in the response.Returns theURIof the server instance that actually handled the request.status()Returns the status of the response.
-
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 anHttpResponseEntityrepresenting the data in the response.- Returns:
- An
HttpResponseEntity.
-
requestUri
URI requestUri()Returns theURIthe request was originally sent to.- Returns:
- The URI of the request.
- See Also:
-
responseUri
URI responseUri()Returns theURIof the server instance that actually handled the request. If no redirects have been followed this equals the URI passed to the execute methods ofHttpRequestExecutorotherwise it's the URI of the last location that didn't return a redirect.- Returns:
- The URI of the responding instance.
- See Also:
-