Obtained via an invocation of ClientHttpRequest#execute().
A ClientHttpResponse must be closed,
typically in a finally block.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default int | Returns: the HTTP status as an integer value
Deprecated
for removal since 6.0. as of 6.0, in favor of
Get the HTTP status code as an integer.
getStatusCode(); scheduled for
removal in 6.2
|
| public HttpStatusCode | Returns: the HTTP status asHttpStatusCode value (never null)Get the HTTP status code as an |
| public String |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Close this response, freeing any resources created.
| |
| getRawStatusCode | back to summary |
|---|---|
| public default int getRawStatusCode() throws IOException
Deprecated for removal since 6.0. as of 6.0, in favor of Get the HTTP status code as an integer.
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() throws IOException Get the HTTP status code as an
| |
| getStatusText | back to summary |
|---|---|
| public String getStatusText() throws IOException Get the HTTP status text of the response.
| |