pub struct RequestIntercepted {
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<i64>,
pub response_headers: Option<Headers>,
pub request_id: Option<RequestId>,
}Expand description
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead. EXPERIMENTAL: This feature is experimental and may change or be removed.
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: Requestframe_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<i64>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.
Implementations§
Trait Implementations§
Source§impl Clone for RequestIntercepted
impl Clone for RequestIntercepted
Source§fn clone(&self) -> RequestIntercepted
fn clone(&self) -> RequestIntercepted
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more