java.lang.Object | |
↳ | com.android.volley.toolbox.HttpHeaderParser |
Utility methods for parsing HTTP headers.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HttpHeaderParser() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Cache.Entry |
parseCacheHeaders(NetworkResponse response)
Extracts a
Cache.Entry from a NetworkResponse . | ||||||||||
static String |
parseCharset(Map<String, String> headers)
Returns the charset specified in the Content-Type of this header,
or the HTTP default (ISO-8859-1) if none can be found.
| ||||||||||
static String |
parseCharset(Map<String, String> headers, String defaultCharset)
Retrieve a charset from headers
| ||||||||||
static long |
parseDateAsEpoch(String dateStr)
Parse date in RFC1123 format, and return its value as epoch
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Extracts a Cache.Entry
from a NetworkResponse
.
response | The network response to parse headers from |
---|
Returns the charset specified in the Content-Type of this header, or the HTTP default (ISO-8859-1) if none can be found.
Retrieve a charset from headers
headers | An java.util.Map of headers |
---|---|
defaultCharset | Charset to return if none can be found |
Parse date in RFC1123 format, and return its value as epoch