public static final class HttpRequestor.Response
extends java.lang.Object
Constructor and Description |
---|
Response(int statusCode,
java.io.InputStream body,
java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> headers) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getBody()
Returns an
InputStream for reading the HTTP response body. |
java.util.Map<java.lang.String,java.util.List<java.lang.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, java.io.InputStream body, java.util.Map<java.lang.String,? extends java.util.List<java.lang.String>> headers)
public int getStatusCode()
public java.io.InputStream getBody()
InputStream
for reading the HTTP response body.
The returned stream must be fully read before closing.
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()