类 CacheStrategy
java.lang.Object
com.lark.oapi.okhttp.internal.cache.CacheStrategy
Given a request and cached response, this figures out whether to use the network, the cache, or
both.
Selecting a cache strategy may add conditions to the request (like the "If-Modified-Since" header for conditional GETs) or warnings to the cached response (if the cached data is potentially stale).
-
嵌套类概要
嵌套类 -
字段概要
字段 -
方法概要
修饰符和类型方法说明static booleanisCacheable(Response response, Request request) Returns true ifresponsecan be stored to later serve another request.
-
字段详细资料
-
networkRequest
The request to send on the network, or null if this call doesn't use the network. -
cacheResponse
The cached response to return or validate; or null if this call doesn't use a cache.
-
-
方法详细资料
-
isCacheable
Returns true ifresponsecan be stored to later serve another request.
-