class HttpCacheRecord
source · line 135public
public class HttpCacheRecord public constructor(
/**
* The stored representation identity.
*/
public val key: HttpCacheKey,
/**
* The stored response head.
*/
public val head: HttpResponseHead,
/**
* The wall-clock instant when the request was sent.
*/
public val sentAt: Instant,
/**
* The wall-clock instant when the response was received.
*/
public val receivedAt: Instant,
vary: List<HttpCacheVary> = emptyList<HttpCacheVary>()
)
Stored response metadata, request/response times, and sorted unique Vary fingerprints.
property key
source · line 139public
public val key: HttpCacheKey
get: public read-only
The stored representation identity.
function matches
source · line 167public
public fun matches(request: HttpCacheRequest): Boolean
Tests key equality and every stored Vary fingerprint against a cache request.
parameter request
source · line 167public
request: HttpCacheRequest
property head
source · line 143public
public val head: HttpResponseHead
get: public read-only
The stored response head.
constructor constructor
source · line 135public
constructor(public val key: HttpCacheKey, public val head: HttpResponseHead, public val sentAt: Instant, public val receivedAt: Instant, vary: List<HttpCacheVary> = emptyList<HttpCacheVary>())
parameter head
source · line 143public
public val head: HttpResponseHead
parameter key
source · line 139public
public val key: HttpCacheKey
parameter vary
source · line 152public
vary: List<HttpCacheVary> = emptyList<HttpCacheVary>()
parameter receivedAt
source · line 151public
public val receivedAt: Instant
parameter sentAt
source · line 147public
public val sentAt: Instant
property receivedAt
source · line 151public
public val receivedAt: Instant
get: public read-only
The wall-clock instant when the response was received.
property sentAt
source · line 147public
public val sentAt: Instant
get: public read-only
The wall-clock instant when the request was sent.
property vary
source · line 157public
public val vary: Array<HttpCacheVary>
get: public read-only
Sorted unique Vary names with their request fingerprints.