Skip to main content

cdp_driver/methods/
security.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Security` domain.
5//!
6//! Method names for the `Security` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8
9/// Disables tracking security state changes.
10pub const DISABLE: &str = "Security.disable";
11
12/// Enables tracking security state changes.
13pub const ENABLE: &str = "Security.enable";
14
15/// Enable/disable whether all certificate errors should be ignored.
16///
17/// Parameters:
18/// - `ignore`: boolean
19pub const SET_IGNORE_CERTIFICATE_ERRORS: &str = "Security.setIgnoreCertificateErrors";
20
21/// Handles a certificate error that fired a certificateError event.
22///
23/// Deprecated in the protocol.
24///
25/// Parameters:
26/// - `eventId`: integer
27/// - `action`: CertificateErrorAction
28pub const HANDLE_CERTIFICATE_ERROR: &str = "Security.handleCertificateError";
29
30/// Enable/disable overriding certificate errors. If enabled, all certificate
31/// error events need to be handled by the DevTools client and should be
32/// answered with `handleCertificateError` commands.
33///
34/// Deprecated in the protocol.
35///
36/// Parameters:
37/// - `override`: boolean
38pub const SET_OVERRIDE_CERTIFICATE_ERRORS: &str = "Security.setOverrideCertificateErrors";