Lines Matching defs:headers
29 * Utility methods for parsing HTTP headers.
36 * @param response The network response to parse headers from
42 Map<String, String> headers = response.headers;
57 headerValue = headers.get("Date");
62 headerValue = headers.get("Cache-Control");
86 headerValue = headers.get("Expires");
91 headerValue = headers.get("Last-Modified");
96 serverEtag = headers.get("ETag");
118 entry.responseHeaders = headers;
137 * Retrieve a charset from headers
139 * @param headers An {@link java.util.Map} of headers
144 public static String parseCharset(Map<String, String> headers, String defaultCharset) {
145 String contentType = headers.get(HTTP.CONTENT_TYPE);
165 public static String parseCharset(Map<String, String> headers) {
166 return parseCharset(headers, HTTP.DEFAULT_CONTENT_CHARSET);