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: 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.
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<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§impl Serialize for EventRequestPaused
impl Serialize for EventRequestPaused
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<CdpEvent> for EventRequestPaused
impl TryFrom<CdpEvent> for EventRequestPaused
impl StructuralPartialEq for EventRequestPaused
Auto Trait Implementations§
impl Freeze for EventRequestPaused
impl RefUnwindSafe for EventRequestPaused
impl Send for EventRequestPaused
impl Sync for EventRequestPaused
impl Unpin for EventRequestPaused
impl UnwindSafe for EventRequestPaused
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more