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