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