pub struct RequestWillBeSentEvent {Show 13 fields
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>,
pub render_blocking_behavior: Option<RenderBlockingBehavior>,
}Expand description
Fired when page is about to send HTTP request.
Payload of the Network.requestWillBeSent event.
Fields§
§request_id: RequestIdRequest identifier.
loader_id: LoaderIdLoader identifier. Empty string if the request is fetched from worker.
document_url: StringURL of the document this request is loaded for.
request: RequestRequest data.
timestamp: MonotonicTimeTimestamp.
wall_time: TimeSinceEpochTimestamp.
initiator: InitiatorRequest initiator.
redirect_has_extra_info: boolIn 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.
Experimental: may change without notice.
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.
render_blocking_behavior: Option<RenderBlockingBehavior>The render-blocking behavior of the request.
Experimental: may change without notice.
Trait Implementations§
Source§impl Clone for RequestWillBeSentEvent
impl Clone for RequestWillBeSentEvent
Source§impl Debug for RequestWillBeSentEvent
impl Debug for RequestWillBeSentEvent
Source§impl<'de> Deserialize<'de> for RequestWillBeSentEvent
impl<'de> Deserialize<'de> for RequestWillBeSentEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Event for RequestWillBeSentEvent
impl Event for RequestWillBeSentEvent
Source§impl PartialEq for RequestWillBeSentEvent
impl PartialEq for RequestWillBeSentEvent
Source§impl Serialize for RequestWillBeSentEvent
impl Serialize for RequestWillBeSentEvent
impl StructuralPartialEq for RequestWillBeSentEvent
Auto Trait Implementations§
impl Forget for RequestWillBeSentEvent
impl Freeze for RequestWillBeSentEvent
impl RefUnwindSafe for RequestWillBeSentEvent
impl Send for RequestWillBeSentEvent
impl Sync for RequestWillBeSentEvent
impl Unpin for RequestWillBeSentEvent
impl UnsafeUnpin for RequestWillBeSentEvent
impl UnwindSafe for RequestWillBeSentEvent
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