pub struct EventRequestPaused {
pub request_id: RequestId,
pub request: Request,
pub frame_id: FrameId,
pub resource_type: ResourceType,
pub response_error_reason: Option<ErrorReason>,
pub response_status_code: Option<i64>,
pub response_status_text: Option<String>,
pub response_headers: Option<Vec<HeaderEntry>>,
pub network_id: Option<RequestId>,
pub redirected_request_id: Option<RequestId>,
}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.
Redirect responses and subsequent requests are reported similarly to regular
responses and requests. Redirect responses may be distinguished by the value
of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with
presence of the location header. Requests resulting from a redirect will
have redirectedRequestId field set.
requestPaused
Fields§
§request_id: RequestIdEach request the page makes will have a unique id.
request: RequestThe details of the request.
frame_id: FrameIdThe 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<i64>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<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.
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 EventRequestPaused
impl EventRequestPaused
pub const IDENTIFIER: &'static str = "Fetch.requestPaused"
Trait Implementations§
Source§impl Clone for EventRequestPaused
impl Clone for EventRequestPaused
Source§fn clone(&self) -> EventRequestPaused
fn clone(&self) -> EventRequestPaused
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventRequestPaused
impl Debug for EventRequestPaused
Source§impl<'de> Deserialize<'de> for EventRequestPaused
impl<'de> Deserialize<'de> for EventRequestPaused
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 From<EventRequestPaused> for CdpEvent
impl From<EventRequestPaused> for CdpEvent
Source§fn from(el: EventRequestPaused) -> CdpEvent
fn from(el: EventRequestPaused) -> CdpEvent
Source§impl IntoEventKind for EventRequestPaused
impl IntoEventKind for EventRequestPaused
Source§fn event_kind() -> EventKindwhere
Self: Sized + 'static,
fn event_kind() -> EventKindwhere
Self: Sized + 'static,
Source§impl Method for EventRequestPaused
impl Method for EventRequestPaused
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode