pub struct RequestInterceptedEventParams {
pub interception_id: InterceptionId,
pub request: Request,
pub frame_id: FrameId,
pub resource_type: ResourceType,
pub is_navigation_request: bool,
pub is_download: Option<bool>,
pub redirect_url: Option<String>,
pub auth_challenge: Option<AuthChallenge>,
pub response_error_reason: Option<ErrorReason>,
pub response_status_code: Option<JsUInt>,
pub response_headers: Option<Headers>,
pub request_id: Option<RequestId>,
}Fields§
§interception_id: InterceptionIdEach 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.
request: Request§frame_id: FrameIdThe id of the frame that initiated the request.
resource_type: ResourceTypeHow the requested resource will be used.
Whether this is a navigation request, which can abort the navigation completely.
is_download: 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).
redirect_url: Option<String>Redirect location, only sent if a redirect was intercepted.
auth_challenge: Option<AuthChallenge>Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
response_error_reason: Option<ErrorReason>Response error if intercepted at response stage or if redirect occurred while intercepting request.
response_status_code: Option<JsUInt>Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
response_headers: Option<Headers>Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
request_id: 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 RequestInterceptedEventParams
impl Clone for RequestInterceptedEventParams
Source§fn clone(&self) -> RequestInterceptedEventParams
fn clone(&self) -> RequestInterceptedEventParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for RequestInterceptedEventParams
impl<'de> Deserialize<'de> for RequestInterceptedEventParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RequestInterceptedEventParams
impl PartialEq for RequestInterceptedEventParams
Source§fn eq(&self, other: &RequestInterceptedEventParams) -> bool
fn eq(&self, other: &RequestInterceptedEventParams) -> bool
self and other values to be equal, and is used by ==.