pub struct RequestInterceptedEventBuilder { /* private fields */ }Network and Debugger and Runtime and Security and experimental only.Implementationsยง
Sourceยงimpl RequestInterceptedEventBuilder
impl RequestInterceptedEventBuilder
Sourcepub fn interception_id(&mut self, v: InterceptionId) -> &mut Self
๐Deprecated
pub fn interception_id(&mut self, v: InterceptionId) -> &mut Self
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
Sourcepub fn frame_id(&mut self, v: FrameId) -> &mut Self
๐Deprecated
pub fn frame_id(&mut self, v: FrameId) -> &mut Self
The id of the frame that initiated the request.
Sourcepub fn resource_type(&mut self, v: ResourceType) -> &mut Self
๐Deprecated
pub fn resource_type(&mut self, v: ResourceType) -> &mut Self
How the requested resource will be used.
๐Deprecated
Whether this is a navigation request, which can abort the navigation completely.
Sourcepub fn is_download(&mut self, v: bool) -> &mut Self
๐Deprecated
pub fn is_download(&mut self, v: bool) -> &mut Self
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).
Sourcepub fn redirect_url(&mut self, v: String) -> &mut Self
๐Deprecated
pub fn redirect_url(&mut self, v: String) -> &mut Self
Redirect location, only sent if a redirect was intercepted.
Sourcepub fn auth_challenge(&mut self, v: JsonValue) -> &mut Self
๐Deprecated
pub fn auth_challenge(&mut self, v: JsonValue) -> &mut Self
Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
Sourcepub fn response_error_reason(&mut self, v: ErrorReason) -> &mut Self
๐Deprecated
pub fn response_error_reason(&mut self, v: ErrorReason) -> &mut Self
Response error if intercepted at response stage or if redirect occurred while intercepting request.
Sourcepub fn response_status_code(&mut self, v: u32) -> &mut Self
๐Deprecated
pub fn response_status_code(&mut self, v: u32) -> &mut Self
Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
Sourcepub fn response_headers(&mut self, v: Headers) -> &mut Self
๐Deprecated
pub fn response_headers(&mut self, v: Headers) -> &mut Self
Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
๐Deprecated
pub fn request_id(&mut self, v: RequestId) -> &mut Self
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>
Trait Implementationsยง
Sourceยงimpl Clone for RequestInterceptedEventBuilder
impl Clone for RequestInterceptedEventBuilder
Sourceยงfn clone(&self) -> RequestInterceptedEventBuilder
fn clone(&self) -> RequestInterceptedEventBuilder
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more