Companion

object Companion

Functions

hasVaryAll
Link copied to clipboard
fun Response.hasVaryAll(): Boolean
Returns true if a Vary header contains an asterisk.
key
Link copied to clipboard
fun key(request: Request): String
varyHeaders
Link copied to clipboard
fun Response.varyHeaders(): Headers
Returns the subset of the headers in this's request that impact the content of this's body.
varyMatches
Link copied to clipboard
fun varyMatches(cachedResponse: Response, cachedRequest: Headers, newRequest: Request): Boolean
Returns true if none of the Vary headers have changed between cachedRequest and newRequest.