cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `CacheStorage` domain.
//!
//! Method names for the `CacheStorage` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Deletes a cache.
///
/// Parameters:
/// - `cacheId`: CacheId
pub const DELETE_CACHE: &str = "CacheStorage.deleteCache";

/// Deletes a cache entry.
///
/// Parameters:
/// - `cacheId`: CacheId
/// - `request`: string
pub const DELETE_ENTRY: &str = "CacheStorage.deleteEntry";

/// Requests cache names.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
///
/// Returns: `caches`
pub const REQUEST_CACHE_NAMES: &str = "CacheStorage.requestCacheNames";

/// Fetches cache entry.
///
/// Parameters:
/// - `cacheId`: CacheId
/// - `requestURL`: string
/// - `requestHeaders`: array
///
/// Returns: `response`
pub const REQUEST_CACHED_RESPONSE: &str = "CacheStorage.requestCachedResponse";

/// Requests data from cache.
///
/// Parameters:
/// - `cacheId`: CacheId
/// - `skipCount`: integer (optional)
/// - `pageSize`: integer (optional)
/// - `pathFilter`: string (optional)
///
/// Returns: `cacheDataEntries`, `returnCount`
pub const REQUEST_ENTRIES: &str = "CacheStorage.requestEntries";