CacheStorage

class CacheStorage(cdp: CDP) : Domain

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class Cache(val cacheId: String, val securityOrigin: String, val storageKey: String, val storageBucket: Storage.StorageBucket? = null, val cacheName: String)

Cache identifier.

Link copied to clipboard
@Serializable
data class CachedResponse(val body: String)

Cached response

Link copied to clipboard

type of HTTP response cached

Link copied to clipboard
@Serializable
data class DataEntry(val requestURL: String, val requestMethod: String, val requestHeaders: List<CacheStorage.Header>, val responseTime: Double, val responseStatus: Int, val responseStatusText: String, val responseType: CacheStorage.CachedResponseType, val responseHeaders: List<CacheStorage.Header>)

Data entry.

Link copied to clipboard
@Serializable
data class DeleteCacheParameter(val cacheId: String)
Link copied to clipboard
@Serializable
data class DeleteEntryParameter(val cacheId: String, val request: String)
Link copied to clipboard
@Serializable
data class Header(val name: String, val value: String)
Link copied to clipboard
@Serializable
data class RequestCachedResponseParameter(val cacheId: String, val requestURL: String, val requestHeaders: List<CacheStorage.Header>)
Link copied to clipboard
@Serializable
data class RequestCachedResponseReturn(val response: CacheStorage.CachedResponse)
Link copied to clipboard
@Serializable
data class RequestCacheNamesParameter(val securityOrigin: String? = null, val storageKey: String? = null, val storageBucket: Storage.StorageBucket? = null)
Link copied to clipboard
@Serializable
data class RequestCacheNamesReturn(val caches: List<CacheStorage.Cache>)
Link copied to clipboard
@Serializable
data class RequestEntriesParameter(val cacheId: String, val skipCount: Int? = null, val pageSize: Int? = null, val pathFilter: String? = null)
Link copied to clipboard
@Serializable
data class RequestEntriesReturn(val cacheDataEntries: List<CacheStorage.DataEntry>, val returnCount: Double)

Functions

Link copied to clipboard
suspend fun deleteCache(cacheId: String)
suspend fun deleteCache(args: CacheStorage.DeleteCacheParameter, mode: CommandMode = CommandMode.DEFAULT)

Deletes a cache.

Link copied to clipboard
suspend fun deleteEntry(args: CacheStorage.DeleteEntryParameter, mode: CommandMode = CommandMode.DEFAULT)
suspend fun deleteEntry(cacheId: String, request: String)

Deletes a cache entry.

Link copied to clipboard
Link copied to clipboard
suspend fun requestCacheNames(securityOrigin: String? = null, storageKey: String? = null, storageBucket: Storage.StorageBucket? = null): CacheStorage.RequestCacheNamesReturn

Requests cache names.

Link copied to clipboard
suspend fun requestEntries(cacheId: String, skipCount: Int? = null, pageSize: Int? = null, pathFilter: String? = null): CacheStorage.RequestEntriesReturn

Requests data from cache.