cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `Security` domain.
//!
//! Method names for the `Security` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).

/// Disables tracking security state changes.
pub const DISABLE: &str = "Security.disable";

/// Enables tracking security state changes.
pub const ENABLE: &str = "Security.enable";

/// Enable/disable whether all certificate errors should be ignored.
///
/// Parameters:
/// - `ignore`: boolean
pub const SET_IGNORE_CERTIFICATE_ERRORS: &str = "Security.setIgnoreCertificateErrors";

/// Handles a certificate error that fired a certificateError event.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `eventId`: integer
/// - `action`: CertificateErrorAction
pub const HANDLE_CERTIFICATE_ERROR: &str = "Security.handleCertificateError";

/// Enable/disable overriding certificate errors. If enabled, all certificate
/// error events need to be handled by the DevTools client and should be
/// answered with `handleCertificateError` commands.
///
/// Deprecated in the protocol.
///
/// Parameters:
/// - `override`: boolean
pub const SET_OVERRIDE_CERTIFICATE_ERRORS: &str = "Security.setOverrideCertificateErrors";