pub struct RequestWillBeSentParams {Show 13 fields
pub request_id: RequestId,
pub loader_id: Box<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. requestWillBeSent
Fields§
§request_id: RequestIdRequest identifier.
loader_id: Box<LoaderId>Loader 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.
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.
Trait Implementations§
Source§impl Clone for RequestWillBeSentParams
impl Clone for RequestWillBeSentParams
Source§fn clone(&self) -> RequestWillBeSentParams
fn clone(&self) -> RequestWillBeSentParams
Returns a duplicate 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 RequestWillBeSentParams
impl Debug for RequestWillBeSentParams
Source§impl<'de> Deserialize<'de> for RequestWillBeSentParams
impl<'de> Deserialize<'de> for RequestWillBeSentParams
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 PartialEq for RequestWillBeSentParams
impl PartialEq for RequestWillBeSentParams
Source§impl Serialize for RequestWillBeSentParams
impl Serialize for RequestWillBeSentParams
impl StructuralPartialEq for RequestWillBeSentParams
Auto Trait Implementations§
impl Freeze for RequestWillBeSentParams
impl RefUnwindSafe for RequestWillBeSentParams
impl Send for RequestWillBeSentParams
impl Sync for RequestWillBeSentParams
impl Unpin for RequestWillBeSentParams
impl UnsafeUnpin for RequestWillBeSentParams
impl UnwindSafe for RequestWillBeSentParams
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