Struct cdp::network::RequestInterceptedEvent [] [src]

pub struct RequestInterceptedEvent<'a> {
    pub interception_id: InterceptionId<'a>,
    pub request: Request<'a>,
    pub resource_type: ResourceType,
    pub is_navigation_request: bool,
    pub redirect_headers: Option<Headers>,
    pub redirect_status_code: Option<i32>,
    pub redirect_url: Option<Cow<'a, str>>,
    pub auth_challenge: Option<AuthChallenge<'a>>,
}

[Experimental] Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked.

Event Network.requestIntercepted

Domain Module: cdp::network
Event Struct: cdp::network::RequestInterceptedEvent

Fields

Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.

How the requested resource will be used.

Whether this is a navigation request, which can abort the navigation completely.

HTTP response headers, only sent if a redirect was intercepted.

HTTP response code, only sent if a redirect was intercepted.

Redirect location, only sent if a redirect was intercepted.

Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.

Trait Implementations

impl<'a> Clone for RequestInterceptedEvent<'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 RequestInterceptedEvent<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for RequestInterceptedEvent<'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> CdpEvent for RequestInterceptedEvent<'a>
[src]

EVENT_NAME: &'static str = "Network.requestIntercepted"

impl<'a> SerializeCdpEvent for RequestInterceptedEvent<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpEvent<'de> for RequestInterceptedEvent<'a>
[src]

[src]