Struct chromiumoxide::cdp::browser_protocol::fetch::EventRequestPaused
source · 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>,
}
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. requestPaused
Fields§
§request_id: RequestId
Each request the page makes will have a unique id.
request: Request
The details of the request.
frame_id: FrameId
The id of the frame that initiated the request.
resource_type: ResourceType
How 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.
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<EventRequestPaused, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EventRequestPaused, <__D as Deserializer<'de>>::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
EventRequestPaused: Sized + 'static,
fn event_kind() -> EventKindwhere
EventRequestPaused: Sized + 'static,
source§impl Method for EventRequestPaused
impl Method for EventRequestPaused
source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode
source§impl MethodType for EventRequestPaused
impl MethodType for EventRequestPaused
source§impl PartialEq for EventRequestPaused
impl PartialEq for EventRequestPaused
source§fn eq(&self, other: &EventRequestPaused) -> bool
fn eq(&self, other: &EventRequestPaused) -> bool
self
and other
values to be equal, and is used
by ==
.