pub struct RequestPausedEvent { /* private fields */ }Fetch and Network and IO and Page only.Expand description
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. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode – the request is at the response stage if either of these fields is present and in the request stage otherwise.
Implementations§
Source§impl RequestPausedEvent
impl RequestPausedEvent
pub fn builder() -> RequestPausedEventBuilder
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
Each request the page makes will have a unique id.
Sourcepub fn resource_type(&self) -> &ResourceType
pub fn resource_type(&self) -> &ResourceType
How the requested resource will be used.
Sourcepub fn response_error_reason(&self) -> Option<&ErrorReason>
pub fn response_error_reason(&self) -> Option<&ErrorReason>
Response error if intercepted at response stage.
Sourcepub fn response_status_code(&self) -> Option<&u32>
pub fn response_status_code(&self) -> Option<&u32>
Response code if intercepted at response stage.
Sourcepub fn response_headers(&self) -> Option<&Vec<HeaderEntry>>
pub fn response_headers(&self) -> Option<&Vec<HeaderEntry>>
Response headers if intercepted at the response stage.
Sourcepub fn network_id(&self) -> Option<&RequestId>
pub fn network_id(&self) -> Option<&RequestId>
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
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