public interface HttpResponse extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current response.
|
HttpHeaders |
getHeaders()
Gets the headers of this response.
|
InputStream |
getInputStream()
The HTTP response body.
|
int |
getStatus()
Gets the HTTP response status.
|
URI |
getUri()
Gets the URI of the response.
|
URI getUri()
int getStatus()
HttpHeaders getHeaders()
InputStream getInputStream() throws IOException
IOException - an I/O error occursvoid close()
throws IOException
close in interface AutoCloseableIOException - an I/O error occursCopyright © 2023. All rights reserved.