Struct chrome_remote_interface_model::network::RequestInterceptedEventBuilder[][src]

pub struct RequestInterceptedEventBuilder { /* fields omitted */ }
👎 Deprecated

Implementations

impl RequestInterceptedEventBuilder[src]

pub fn interception_id(&mut self, v: InterceptionId) -> &mut Self[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(&mut self, v: Request) -> &mut Self[src]

👎 Deprecated

pub fn frame_id(&mut self, v: FrameId) -> &mut Self[src]

👎 Deprecated

The id of the frame that initiated the request.

pub fn resource_type(&mut self, v: ResourceType) -> &mut Self[src]

👎 Deprecated

How the requested resource will be used.

pub fn is_navigation_request(&mut self, v: bool) -> &mut Self[src]

👎 Deprecated

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

pub fn is_download(&mut self, v: bool) -> &mut Self[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(&mut self, v: String) -> &mut Self[src]

👎 Deprecated

Redirect location, only sent if a redirect was intercepted.

pub fn auth_challenge(&mut self, v: JsonValue) -> &mut Self[src]

👎 Deprecated

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

pub fn response_error_reason(&mut self, v: ErrorReason) -> &mut Self[src]

👎 Deprecated

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

pub fn response_status_code(&mut self, v: u32) -> &mut Self[src]

👎 Deprecated

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

pub fn response_headers(&mut self, v: Headers) -> &mut Self[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(&mut self, v: RequestId) -> &mut Self[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.

pub fn build(&mut self) -> Result<RequestInterceptedEvent, &'static str>[src]

👎 Deprecated

Trait Implementations

impl Clone for RequestInterceptedEventBuilder[src]

impl Debug for RequestInterceptedEventBuilder[src]

impl Default for RequestInterceptedEventBuilder[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> 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.