Skip to main content

cdp_driver/methods/
audits.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! Audits domain allows investigation of page violations and possible
5//! improvements.
6//!
7//! Method names for the `Audits` domain, for use with
8//! [`CdpClient::call`](crate::CdpClient::call).
9//!
10//! This domain is experimental and may change without notice.
11
12/// Returns the response body and size if it were re-encoded with the
13/// specified settings. Only applies to images.
14///
15/// Parameters:
16/// - `requestId`: Network.RequestId
17/// - `encoding`: string
18/// - `quality`: number (optional)
19/// - `sizeOnly`: boolean (optional)
20///
21/// Returns: `body`, `originalSize`, `encodedSize`
22pub const GET_ENCODED_RESPONSE: &str = "Audits.getEncodedResponse";
23
24/// Disables issues domain, prevents further issues from being reported to the
25/// client.
26pub const DISABLE: &str = "Audits.disable";
27
28/// Enables issues domain, sends the issues collected so far to the client by
29/// means of the `issueAdded` event.
30pub const ENABLE: &str = "Audits.enable";
31
32/// Runs the form issues check for the target page. Found issues are reported
33/// using Audits.issueAdded event.
34///
35/// Returns: `formIssues`
36pub const CHECK_FORMS_ISSUES: &str = "Audits.checkFormsIssues";