Scoop API

scoop:scoop.http.client:0.1.0

HttpCacheRecord

class HttpCacheRecord

source · line 135
public
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.

constructor constructor

source · line 135
public
constructor(public val key: HttpCacheKey, public val head: HttpResponseHead, public val sentAt: Instant, public val receivedAt: Instant, vary: List<HttpCacheVary> = emptyList<HttpCacheVary>())

property receivedAt

source · line 151
public
public val receivedAt: Instant

get: public read-only

The wall-clock instant when the response was received.

property sentAt

source · line 147
public
public val sentAt: Instant

get: public read-only

The wall-clock instant when the request was sent.