Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
Modifier and Type | Field and Description |
---|---|
private CacheControl |
Request.cacheControl |
private CacheControl |
Response.cacheControl |
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 |
Request.cacheControl()
Returns the cache control directives for this response.
|
CacheControl |
Response.cacheControl()
Returns the cache control directives for this response.
|
static CacheControl |
CacheControl.parse(Headers headers)
Returns the cache directives of
headers . |
Modifier and Type | Method and Description |
---|---|
Request.Builder |
Request.Builder.cacheControl(CacheControl cacheControl)
Sets this request's
Cache-Control header, replacing any cache control headers already
present. |