public static final class HttpRequestor.Response extends Object
Constructor and Description |
---|
Response(int statusCode,
InputStream body,
Map<String,? extends List<String>> headers) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getBody()
Returns an
InputStream for reading the HTTP response body. |
Map<String,List<String>> |
getHeaders()
Returns a case-insensitive, unmodifiable mapping of header fields to their values.
|
int |
getStatusCode()
Returns HTTP status response code.
|
public Response(int statusCode, InputStream body, Map<String,? extends List<String>> headers)
public int getStatusCode()
public InputStream getBody()
InputStream
for reading the HTTP response body.
The returned stream must be fully read before closing.