Lines Matching refs:headers

41  * received over the network. The component handles parsing of HTTP headers and
42 * utilizes the relevant cache headers to determine if the content should be
44 * this component and if they can not be resolved by the cache, the HTTP headers
358 * If a non-zero value is provided for the headers map, and the cache entry needs validation,
359 * HEADER_KEY_IFNONEMATCH or HEADER_KEY_IFMODIFIEDSINCE will be set in headers.
367 Map<String, String> headers) {
368 return getCacheFile(url, 0, headers);
372 Map<String, String> headers) {
423 // A null value for headers is used by CACHE_MODE_CACHE_ONLY to imply
426 if (headers != null && result.expires >= 0
434 headers.put(HEADER_KEY_IFNONEMATCH, result.etag);
437 headers.put(HEADER_KEY_IFMODIFIEDSINCE, result.lastModified);
449 * Given a url and its full headers, returns CacheResult if a local cache
452 * could be different from the mimetype defined in the headers.
457 * @hide - hide createCacheFile since it has a parameter of type headers, which is
464 Headers headers, String mimeType, boolean forceCache) {
470 return createCacheFile(url, statusCode, headers, mimeType, 0,
475 Headers headers, String mimeType, long postIdentifier,
494 if (isCachableRedirect(statusCode) && !headers.getSetCookie().isEmpty()) {
500 CacheResult ret = parseHeaders(statusCode, headers, mimeType);
502 // this should only happen if the headers has "no-store" in the
802 private static CacheResult parseHeaders(int statusCode, Headers headers,
807 if (headers.getContentLength() > CACHE_MAX_SIZE) return null;
822 ret.location = headers.getLocation();
825 ret.expiresString = headers.getExpires();
841 ret.contentdisposition = headers.getContentDisposition();
843 ret.crossDomain = headers.getXPermittedCrossDomainPolicies();
847 String lastModified = headers.getLastModified();
852 String etag = headers.getEtag();
857 String cacheControl = headers.getCacheControl();
908 if (NO_CACHE.equals(headers.getPragma())) {