//okhttp/okhttp3/Cache/Companion
Companion¶
[jvm]\ object Companion
Functions¶
Name | Summary |
---|---|
hasVaryAll | [jvm] fun Response.hasVaryAll(): Boolean Returns true if a Vary header contains an asterisk. Such responses cannot be cached. |
key | [jvm] @JvmStatic fun key(url: HttpUrl): String |
varyHeaders | [jvm] fun Response.varyHeaders(): Headers Returns the subset of the headers in this’s request that impact the content of this’s body. |
varyMatches | [jvm] fun varyMatches(cachedResponse: Response, cachedRequest: Headers, newRequest: Request): Boolean Returns true if none of the Vary headers have changed between cachedRequest and newRequest. |