cdp_driver/methods/cache_storage.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `CacheStorage` domain.
5//!
6//! Method names for the `CacheStorage` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// Deletes a cache.
12///
13/// Parameters:
14/// - `cacheId`: CacheId
15pub const DELETE_CACHE: &str = "CacheStorage.deleteCache";
16
17/// Deletes a cache entry.
18///
19/// Parameters:
20/// - `cacheId`: CacheId
21/// - `request`: string
22pub const DELETE_ENTRY: &str = "CacheStorage.deleteEntry";
23
24/// Requests cache names.
25///
26/// Parameters:
27/// - `securityOrigin`: string (optional)
28/// - `storageKey`: string (optional)
29/// - `storageBucket`: Storage.StorageBucket (optional)
30///
31/// Returns: `caches`
32pub const REQUEST_CACHE_NAMES: &str = "CacheStorage.requestCacheNames";
33
34/// Fetches cache entry.
35///
36/// Parameters:
37/// - `cacheId`: CacheId
38/// - `requestURL`: string
39/// - `requestHeaders`: array
40///
41/// Returns: `response`
42pub const REQUEST_CACHED_RESPONSE: &str = "CacheStorage.requestCachedResponse";
43
44/// Requests data from cache.
45///
46/// Parameters:
47/// - `cacheId`: CacheId
48/// - `skipCount`: integer (optional)
49/// - `pageSize`: integer (optional)
50/// - `pathFilter`: string (optional)
51///
52/// Returns: `cacheDataEntries`, `returnCount`
53pub const REQUEST_ENTRIES: &str = "CacheStorage.requestEntries";