Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Cache(val cacheId: CacheId, val securityOrigin: String, val storageKey: String, val storageBucket: 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
typealias CacheId = String

Unique identifier of the Cache object.

Official doc

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

Data entry.

Link copied to clipboard
@Serializable
data class DeleteCacheRequest(val cacheId: CacheId)

Request object containing input parameters for the CacheStorageDomain.deleteCache command.

Link copied to clipboard
@Serializable
object DeleteCacheResponse

A dummy response object for the CacheStorageDomain.deleteCache command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DeleteEntryRequest(val cacheId: CacheId, val request: String)

Request object containing input parameters for the CacheStorageDomain.deleteEntry command.

Link copied to clipboard
@Serializable
object DeleteEntryResponse

A dummy response object for the CacheStorageDomain.deleteEntry command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class Header(val name: String, val value: String)
Link copied to clipboard
@Serializable
data class RequestCachedResponseRequest(val cacheId: CacheId, val requestURL: String, val requestHeaders: List<Header>)

Request object containing input parameters for the CacheStorageDomain.requestCachedResponse command.

Link copied to clipboard
@Serializable
data class RequestCachedResponseResponse(val response: CachedResponse)

Response type for the CacheStorageDomain.requestCachedResponse command.

Link copied to clipboard
@Serializable
data class RequestCacheNamesRequest(val securityOrigin: String? = null, val storageKey: String? = null, val storageBucket: StorageBucket? = null)

Request object containing input parameters for the CacheStorageDomain.requestCacheNames command.

Link copied to clipboard
@Serializable
data class RequestCacheNamesResponse(val caches: List<Cache>)

Response type for the CacheStorageDomain.requestCacheNames command.

Link copied to clipboard
@Serializable
data class RequestEntriesRequest(val cacheId: CacheId, val skipCount: Int? = null, val pageSize: Int? = null, val pathFilter: String? = null)

Request object containing input parameters for the CacheStorageDomain.requestEntries command.

Link copied to clipboard
@Serializable
data class RequestEntriesResponse(val cacheDataEntries: List<DataEntry>, val returnCount: Double)

Response type for the CacheStorageDomain.requestEntries command.