pub struct Request { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
HTTP request data.
Implementations§
Source§impl Request
impl Request
pub fn builder() -> RequestBuilder
Sourcepub fn url_fragment(&self) -> Option<&String>
pub fn url_fragment(&self) -> Option<&String>
Fragment of the requested URL starting with hash, if present.
Sourcepub fn has_post_data(&self) -> Option<&bool>
pub fn has_post_data(&self) -> Option<&bool>
True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
Sourcepub fn post_data_entries(&self) -> Option<&Vec<PostDataEntry>>
Available on crate feature experimental only.
pub fn post_data_entries(&self) -> Option<&Vec<PostDataEntry>>
experimental only.Request body elements. This will be converted from base64 to binary
Sourcepub fn mixed_content_type(&self) -> Option<&MixedContentType>
pub fn mixed_content_type(&self) -> Option<&MixedContentType>
The mixed content type of the request.
Sourcepub fn initial_priority(&self) -> &ResourcePriority
pub fn initial_priority(&self) -> &ResourcePriority
Priority of the resource request at the time request is sent.
Sourcepub fn referrer_policy(&self) -> &RequestReferrerPolicy
pub fn referrer_policy(&self) -> &RequestReferrerPolicy
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
Sourcepub fn is_link_preload(&self) -> Option<&bool>
pub fn is_link_preload(&self) -> Option<&bool>
Whether is loaded via link preload.
Sourcepub fn trust_token_params(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn trust_token_params(&self) -> Option<&JsonValue>
experimental only.Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via “fetch”) as understood by the backend.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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