Struct chrome_remote_interface_model::network::RequestInterceptedEvent[][src]

pub struct RequestInterceptedEvent { /* fields omitted */ }
👎 Deprecated
This is supported on crate features Network and Debugger and Runtime and Security and experimental only.

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

Implementations

impl RequestInterceptedEvent[src]

pub fn builder() -> RequestInterceptedEventBuilder[src]

👎 Deprecated

pub fn interception_id(&self) -> &InterceptionId[src]

👎 Deprecated

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.

pub fn request(&self) -> &Request[src]

👎 Deprecated

pub fn frame_id(&self) -> &FrameId[src]

👎 Deprecated

The id of the frame that initiated the request.

pub fn resource_type(&self) -> &ResourceType[src]

👎 Deprecated

How the requested resource will be used.

pub fn is_navigation_request(&self) -> bool[src]

👎 Deprecated

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

pub fn is_download(&self) -> Option<&bool>[src]

👎 Deprecated

Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).

pub fn redirect_url(&self) -> Option<&String>[src]

👎 Deprecated

Redirect location, only sent if a redirect was intercepted.

pub fn auth_challenge(&self) -> Option<&JsonValue>[src]

👎 Deprecated

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

pub fn response_error_reason(&self) -> Option<&ErrorReason>[src]

👎 Deprecated

Response error if intercepted at response stage or if redirect occurred while intercepting request.

pub fn response_status_code(&self) -> Option<&u32>[src]

👎 Deprecated

Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.

pub fn response_headers(&self) -> Option<&Headers>[src]

👎 Deprecated

Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.

pub fn request_id(&self) -> Option<&RequestId>[src]

👎 Deprecated

If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.

Trait Implementations

impl Clone for RequestInterceptedEvent[src]

impl Debug for RequestInterceptedEvent[src]

impl<'de> Deserialize<'de> for RequestInterceptedEvent[src]

impl Serialize for RequestInterceptedEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.