public interface HttpClientResponse
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCATION |
static java.lang.String |
SET_COOKIE |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.io.InputStream> |
getBody()
Returns an
Optional input stream for the response body. |
java.util.Optional<java.lang.String> |
getContentType()
Return the content-type header value.
|
default java.util.List<java.net.HttpCookie> |
getCookies()
Get the parsed cookies from the "Set-Cookie" header
|
HttpClientHeaders |
getHeaders()
Return a
List of the HttpClientHeaders response header value. |
default java.util.Optional<java.lang.String> |
getLocation()
Location header value sent for redirects.
|
default java.util.Optional<ObjectMetadataValue> |
getMetadata()
Get the metadata related to the HTTP request sent.
|
int |
getStatus()
Returns the status code for the request.
|
java.util.Optional<java.lang.String> |
getStatusText()
Returns the status text for the request.
|
static final java.lang.String LOCATION
static final java.lang.String SET_COOKIE
int getStatus()
java.util.Optional<java.lang.String> getStatusText()
HttpClientHeaders getHeaders()
List of the HttpClientHeaders response header value.List of the HttpClientHeadersjava.util.Optional<java.lang.String> getContentType()
java.util.Optional<java.io.InputStream> getBody()
Optional input stream for the response body. Note that you should not try to get this more than once, and that you should not close the stream.Optional input streamdefault java.util.Optional<java.lang.String> getLocation()
default java.util.List<java.net.HttpCookie> getCookies()
List of the HttpCookiedefault java.util.Optional<ObjectMetadataValue> getMetadata()