interface HttpCacheSnapshot
source · line 200public
public interface HttpCacheSnapshot : AsyncCloseable
- Supertype
AsyncCloseable - Inherited
suspend fun close(): Unit· AsyncCloseable
An owned stable cached representation. Close the snapshot after consuming its body so storage can release retained resources.
property bodyLength
source · line 212public
public val bodyLength: Long
get: public read-only
The exact stored body byte count.
property body
source · line 208public
public val body: AsyncByteSource
get: public read-only
The snapshot's forward-only body source.
property record
source · line 204public
public val record: HttpCacheRecord
get: public read-only
Metadata belonging to this stable representation snapshot.
property trailers
source · line 216public
public val trailers: Array<HttpField>
get: public read-only
The completed stored trailers.