-
public interface WebClientResponseResponse from a server that was created for our request. An instance is created only if we receive a real response over HTTP. For other cases (e.g. a timeout) the flow ends exceptionally.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Single<Void>close()Asynchronous close of the response.MessageBodyReadableContentcontent()Content to access entity.WebClientResponseHeadersheaders()Headers of the HTTP response.URIlastEndpointURI()URI of the last request.Http.ResponseStatusstatus()Status of this response.Http.Versionversion()Http version of this response.
-
-
-
Method Detail
-
status
Http.ResponseStatus status()
Status of this response.- Returns:
- HTTP status
-
content
MessageBodyReadableContent content()
Content to access entity. The content is never null, though it may be empty (e.g. for HTTP PUT method, we do not get any entity back).- Returns:
- content
-
headers
WebClientResponseHeaders headers()
Headers of the HTTP response.- Returns:
- headers that were present in the response from server
-
version
Http.Version version()
Http version of this response.- Returns:
- http version
-
lastEndpointURI
URI lastEndpointURI()
URI of the last request. (after redirection)- Returns:
- last URI
-
-