pub struct RequestPausedEvent {
pub request_id: RequestId,
pub request: Request,
pub frame_id: String,
pub resource_type: ResourceType,
pub response_error_reason: Option<ErrorReason>,
pub response_status_code: Option<i32>,
pub response_status_text: Option<String>,
pub response_headers: Option<Vec<HeaderEntry>>,
pub network_id: Option<String>,
pub redirected_request_id: Option<RequestId>,
}Expand description
Event: Fetch.requestPaused
Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest.
Fields§
§request_id: RequestIdEach request the page makes will have a unique id.
request: RequestThe details of the request.
frame_id: StringThe id of the frame that initiated the request.
resource_type: ResourceTypeHow the requested resource will be used.
response_error_reason: Option<ErrorReason>Response error if intercepted at response stage.
response_status_code: Option<i32>Response code if intercepted at response stage.
response_status_text: Option<String>Response status text if intercepted at response stage.
response_headers: Option<Vec<HeaderEntry>>Response headers if intercepted at the response stage.
network_id: Option<String>If the intercepted request had a corresponding Network.requestWillBeSent event, then this networkId will be the same as the requestId in that event.
redirected_request_id: Option<RequestId>If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
Implementations§
Source§impl RequestPausedEvent
impl RequestPausedEvent
Sourcepub fn is_response_stage(&self) -> bool
pub fn is_response_stage(&self) -> bool
Check if this event is at the response stage.
Sourcepub fn is_request_stage(&self) -> bool
pub fn is_request_stage(&self) -> bool
Check if this event is at the request stage.
Sourcepub fn is_redirect(&self) -> bool
pub fn is_redirect(&self) -> bool
Check if this is a redirect response.
Trait Implementations§
Source§impl Clone for RequestPausedEvent
impl Clone for RequestPausedEvent
Source§fn clone(&self) -> RequestPausedEvent
fn clone(&self) -> RequestPausedEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more