public class Response extends Object
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBody()
Gets the HTTP response body as a
Blob. |
long |
getContentLength() |
List<String> |
getHeader(String headerName)
Gets a header in the response.
|
int |
getStatusCode()
Gets the HTTP status code of the response.
|
public int getStatusCode()
public long getContentLength()
throws NumberFormatException
Content-Length header, or -1 if not foundNumberFormatExceptionpublic Blob getBody() throws IOException
Blob.IOExceptionCopyright © 2018. All rights reserved.