Struct cdp::network::SetRequestInterceptionEnabledCommand [] [src]

pub struct SetRequestInterceptionEnabledCommand<'a> {
    pub enabled: bool,
    pub patterns: Option<Vec<Cow<'a, str>>>,
}

[Experimental] Sets the requests to intercept that match a the provided patterns.

Command Network.setRequestInterceptionEnabled

Domain Module: cdp::network
Command Struct: cdp::network::SetRequestInterceptionEnabledCommand
Response Struct: cdp::network::SetRequestInterceptionEnabledResponse

Fields

Whether requests should be intercepted. If patterns is not set, matches all and resets any previously set patterns. Other parameters are ignored if false.

URLs matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call. Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. If omitted equivalent to ['*'] (intercept all).

Trait Implementations

impl<'a> Clone for SetRequestInterceptionEnabledCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetRequestInterceptionEnabledCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetRequestInterceptionEnabledCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetRequestInterceptionEnabledCommand<'a>
[src]

COMMAND_NAME: &'static str = "Network.setRequestInterceptionEnabled"

impl<'a> SerializeCdpCommand for SetRequestInterceptionEnabledCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetRequestInterceptionEnabledCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetRequestInterceptionEnabledCommand<'a>
[src]