Struct chrome_remote_interface_model::network::RequestInterceptedEventBuilder [−][src]
Network
and Debugger
and Runtime
and Security
and experimental
only.Implementations
impl RequestInterceptedEventBuilder
[src]
pub fn interception_id(&mut self, v: InterceptionId) -> &mut Self
[src]
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]
pub fn frame_id(&mut self, v: FrameId) -> &mut Self
[src]
The id of the frame that initiated the request.
pub fn resource_type(&mut self, v: ResourceType) -> &mut Self
[src]
How the requested resource will be used.
pub fn is_navigation_request(&mut self, v: bool) -> &mut Self
[src]
Whether this is a navigation request, which can abort the navigation completely.
pub fn is_download(&mut self, v: bool) -> &mut Self
[src]
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]
Redirect location, only sent if a redirect was intercepted.
pub fn auth_challenge(&mut self, v: JsonValue) -> &mut Self
[src]
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]
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]
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]
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]
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]
Trait Implementations
impl Clone for RequestInterceptedEventBuilder
[src]
fn clone(&self) -> RequestInterceptedEventBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RequestInterceptedEventBuilder
[src]
impl Default for RequestInterceptedEventBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestInterceptedEventBuilder
[src]
impl Send for RequestInterceptedEventBuilder
[src]
impl Sync for RequestInterceptedEventBuilder
[src]
impl Unpin for RequestInterceptedEventBuilder
[src]
impl UnwindSafe for RequestInterceptedEventBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,