| Package | Description |
|---|---|
| okhttp3 |
| Modifier and Type | Field and Description |
|---|---|
static CacheControl |
CacheControl.FORCE_CACHE
Cache control request directives that uses the cache only, even if the cached response is stale.
|
static CacheControl |
CacheControl.FORCE_NETWORK
Cache control request directives that require network validation of responses.
|
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
CacheControl.Builder.build()
|
CacheControl |
Response.cacheControl()
Returns the cache control directives for this response.
|
CacheControl |
Request.cacheControl()
Returns the cache control directives for this response.
|
static CacheControl |
CacheControl.parse(Headers
Returns the cache directives of
headers.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
Request.Builder.cacheControl(CacheControl
Sets this request's
Cache-Control header, replacing any cache control headers already present.
|