Home
last modified time | relevance | path

Searched refs:CacheControl (Results 1 – 12 of 12) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheControlTest.java30 CacheControl cacheControl = new CacheControl.Builder().build(); in emptyBuilderIsEmpty()
46 CacheControl cacheControl = new CacheControl.Builder() in completeBuilder()
72 CacheControl cacheControl = CacheControl.parse( in parseEmpty()
90 CacheControl cacheControl = CacheControl.parse(new Headers.Builder() in parse()
110 CacheControl cacheControl = CacheControl.parse(new Headers.Builder() in parseIgnoreCacheControlExtensions()
130 CacheControl cacheControl = CacheControl.parse(headers); in parseCacheControlAndPragmaAreCombined()
138 CacheControl cacheControl = CacheControl.parse(headers); in parseCacheControlHeaderValueIsRetained()
144 CacheControl cacheControl = CacheControl.parse(headers); in parseCacheControlHeaderValueInvalidatedByPragma()
150 CacheControl cacheControl = CacheControl.parse(headers); in parseCacheControlHeaderValueInvalidatedByTwoValues()
156 CacheControl cacheControl = CacheControl.parse(headers); in parsePragmaHeaderValueIsNotRetained()
[all …]
DRequestTest.java140 .cacheControl(new CacheControl.Builder().noCache().build()) in cacheControl()
149 .cacheControl(new CacheControl.Builder().build()) in emptyCacheControlClearsAllCacheControlHeaders()
DCacheTest.java927 .cacheControl(new CacheControl.Builder().noStore().build()) in clientSideNoStore()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCacheControl.java14 public final class CacheControl { class
20 public static final CacheControl FORCE_NETWORK = new Builder().noCache().build();
28 public static final CacheControl FORCE_CACHE = new Builder()
47 private CacheControl(boolean noCache, boolean noStore, int maxAgeSeconds, int sMaxAgeSeconds, in CacheControl() method in CacheControl
64 private CacheControl(Builder builder) { in CacheControl() method in CacheControl
151 public static CacheControl parse(Headers headers) { in parse()
244 return new CacheControl(noCache, noStore, maxAgeSeconds, sMaxAgeSeconds, isPrivate, isPublic, in parse()
362 public CacheControl build() { in build()
363 return new CacheControl(this); in build()
DRequest.java40 private volatile CacheControl cacheControl; // Lazily initialized.
105 public CacheControl cacheControl() { in cacheControl()
106 CacheControl result = cacheControl; in cacheControl()
107 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
194 public Builder cacheControl(CacheControl cacheControl) { in cacheControl()
DResponse.java48 private volatile CacheControl cacheControl; // Lazily initialized.
204 public CacheControl cacheControl() { in cacheControl()
205 CacheControl result = cacheControl; in cacheControl()
206 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DCacheStrategy.java3 import com.squareup.okhttp.CacheControl;
191 CacheControl requestCaching = request.cacheControl(); in getCandidate()
209 CacheControl responseCaching = cacheResponse.cacheControl(); in getCandidate()
247 CacheControl responseCaching = cacheResponse.cacheControl(); in computeFreshnessLifetime()
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/
Dcachecontrol.py139 class CacheControl(object): class
220 if isinstance(properties, CacheControl):
Dresponse.py18 CacheControl,
859 self._cache_control_obj = CacheControl.parse(
863 new_obj = CacheControl.parse(value, type='response')
874 value = CacheControl(value, 'response')
881 value = CacheControl.parse(value, 'response')
Drequest.py24 CacheControl,
1055 cache_obj = CacheControl.parse(value,
1065 value = CacheControl(value, type='request')
1066 if isinstance(value, CacheControl):
/external/chromium-trace/trace-viewer/third_party/WebOb/docs/modules/
Dwebob.txt33 .. autoclass:: webob.cachecontrol.CacheControl
/external/okhttp/
DCHANGELOG.md430 * New: CacheControl model and parser.