pub struct EventRequestWillBeSent {
pub request_id: RequestId,
pub loader_id: LoaderId,
pub document_url: String,
pub request: Request,
pub timestamp: MonotonicTime,
pub wall_time: TimeSinceEpoch,
pub initiator: Initiator,
pub redirect_has_extra_info: bool,
pub redirect_response: Option<Response>,
pub type: Option<ResourceType>,
pub frame_id: Option<FrameId>,
pub has_user_gesture: Option<bool>,
}
Expand description
Fired when page is about to send HTTP request. requestWillBeSent
Fields§
§request_id: RequestId
Request identifier.
loader_id: LoaderId
Loader identifier. Empty string if the request is fetched from worker.
document_url: String
URL of the document this request is loaded for.
request: Request
Request data.
timestamp: MonotonicTime
Timestamp.
wall_time: TimeSinceEpoch
Timestamp.
initiator: Initiator
Request initiator.
redirect_has_extra_info: bool
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
redirect_response: Option<Response>
Redirect response data.
type: Option<ResourceType>
Type of this resource.
frame_id: Option<FrameId>
Frame identifier.
has_user_gesture: Option<bool>
Whether the request is initiated by a user gesture. Defaults to false.
Implementations§
Source§impl EventRequestWillBeSent
impl EventRequestWillBeSent
pub const IDENTIFIER: &'static str = "Network.requestWillBeSent"
Trait Implementations§
Source§impl Clone for EventRequestWillBeSent
impl Clone for EventRequestWillBeSent
Source§fn clone(&self) -> EventRequestWillBeSent
fn clone(&self) -> EventRequestWillBeSent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventRequestWillBeSent
impl Debug for EventRequestWillBeSent
Source§impl<'de> Deserialize<'de> for EventRequestWillBeSent
impl<'de> Deserialize<'de> for EventRequestWillBeSent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventRequestWillBeSent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventRequestWillBeSent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EventRequestWillBeSent> for CdpEvent
impl From<EventRequestWillBeSent> for CdpEvent
Source§fn from(el: EventRequestWillBeSent) -> CdpEvent
fn from(el: EventRequestWillBeSent) -> CdpEvent
Converts to this type from the input type.
Source§impl IntoEventKind for EventRequestWillBeSent
impl IntoEventKind for EventRequestWillBeSent
Source§fn event_kind() -> EventKindwhere
EventRequestWillBeSent: Sized + 'static,
fn event_kind() -> EventKindwhere
EventRequestWillBeSent: Sized + 'static,
What kind of event this type is
Source§impl Method for EventRequestWillBeSent
impl Method for EventRequestWillBeSent
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNode
Source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
Source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
Source§impl MethodType for EventRequestWillBeSent
impl MethodType for EventRequestWillBeSent
Source§impl PartialEq for EventRequestWillBeSent
impl PartialEq for EventRequestWillBeSent
Source§impl Serialize for EventRequestWillBeSent
impl Serialize for EventRequestWillBeSent
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,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<CdpEvent> for EventRequestWillBeSent
impl TryFrom<CdpEvent> for EventRequestWillBeSent
impl StructuralPartialEq for EventRequestWillBeSent
Auto Trait Implementations§
impl Freeze for EventRequestWillBeSent
impl RefUnwindSafe for EventRequestWillBeSent
impl Send for EventRequestWillBeSent
impl Sync for EventRequestWillBeSent
impl Unpin for EventRequestWillBeSent
impl UnwindSafe for EventRequestWillBeSent
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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