public class HttpResponse
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
byte[] |
data
Raw data from this response.
|
java.util.Map<java.lang.String,java.lang.String> |
headers
Response headers.
|
long |
networkTimeMs
Network roundtrip time in milliseconds.
|
boolean |
notModified
True if the server returned a 304 (Not Modified).
|
int |
statusCode
The HTTP status code.
|
| 构造器和说明 |
|---|
HttpResponse(int statusCode,
byte[] data,
java.util.Map<java.lang.String,java.lang.String> headers,
boolean notModified,
long networkTimeMs)
Creates a new network response.
|
public final int statusCode
public final byte[] data
public final java.util.Map<java.lang.String,java.lang.String> headers
public final boolean notModified
public final long networkTimeMs
public HttpResponse(int statusCode,
byte[] data,
java.util.Map<java.lang.String,java.lang.String> headers,
boolean notModified,
long networkTimeMs)
statusCode - the HTTP status codedata - Response bodyheaders - Headers returned with this response, or null for
nonenotModified - True if the server returned a 304 and the data was
already in cachenetworkTimeMs - Round-trip network time to receive network response