| java.lang.Object | |
| ↳ | org.chromium.net.UrlResponseInfo |
Basic information about a response. Included in UrlRequest.Callback callbacks. Each
onRedirectReceived() callback gets a different
copy of UrlResponseInfo describing a particular redirect response.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns an unmodifiable map of the response-header fields and values.
| |||||||||||
Returns an unmodifiable list of response header field and value pairs.
| |||||||||||
Returns the HTTP status code.
| |||||||||||
Returns the HTTP status text of the status line.
| |||||||||||
Returns the protocol (for example 'quic/1+spdy/3') negotiated with the server.
| |||||||||||
Returns the proxy server that was used for the request.
| |||||||||||
Returns a minimum count of bytes received from the network to process this request.
| |||||||||||
Returns the URL the response is for.
| |||||||||||
Returns the URL chain.
| |||||||||||
Returns
true if the response came from the cache, including requests that were
revalidated over the network before being retrieved from the cache. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
Returns the HTTP status code. When a resource is retrieved from the cache, whether it was revalidated or not, the original status code is returned.
| Returns | |
|---|---|
int |
the HTTP status code. |
Returns the HTTP status text of the status line. For example, if the request received a "HTTP/1.1 200 OK" response, this method returns "OK".
| Returns | |
|---|---|
String |
the HTTP status text of the status line. |
Returns the protocol (for example 'quic/1+spdy/3') negotiated with the server. Returns an empty string if no protocol was negotiated, the protocol is not known, or when using plain HTTP or HTTPS.
| Returns | |
|---|---|
String |
the protocol negotiated with the server. |
Returns the proxy server that was used for the request.
| Returns | |
|---|---|
String |
the proxy server that was used for the request. |
Returns a minimum count of bytes received from the network to process this request. This
count may ignore certain overheads (for example IP and TCP/UDP framing, SSL handshake and
framing, proxy handling). This count is taken prior to decompression (for example GZIP) and
includes headers and data from all redirects.
This value may change (even for one UrlResponseInfo instance) as the request
progresses until completion, when onSucceeded(),
onFailed(), or onCanceled() is called.
| Returns | |
|---|---|
long |
a minimum count of bytes received from the network to process this request. |
Returns the URL the response is for. This is the URL after following redirects, so it may not be the originally requested URL.
| Returns | |
|---|---|
String |
the URL the response is for. |
Returns true if the response came from the cache, including requests that were
revalidated over the network before being retrieved from the cache.
| Returns | |
|---|---|
boolean |
true if the response came from the cache, false otherwise.
|