pub struct Request<'a> { /* private fields */ }Expand description
HTTP request data.
Implementations§
Source§impl<'a> Request<'a>
impl<'a> Request<'a>
pub fn builder( url: impl Into<Cow<'a, str>>, method: impl Into<Cow<'a, str>>, headers: Headers, initialPriority: ResourcePriority, referrerPolicy: impl Into<Cow<'a, str>>, ) -> RequestBuilder<'a>
pub fn url(&self) -> &str
pub fn urlFragment(&self) -> Option<&str>
pub fn method(&self) -> &str
pub fn headers(&self) -> &Headers
pub fn postData(&self) -> Option<&str>
pub fn hasPostData(&self) -> Option<bool>
pub fn postDataEntries(&self) -> Option<&[PostDataEntry<'a>]>
pub fn mixedContentType(&self) -> Option<&MixedContentType>
pub fn initialPriority(&self) -> &ResourcePriority
pub fn referrerPolicy(&self) -> &str
pub fn isLinkPreload(&self) -> Option<bool>
pub fn trustTokenParams(&self) -> Option<&TrustTokenParams<'a>>
pub fn isSameSite(&self) -> Option<bool>
pub fn isAdRelated(&self) -> Option<bool>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Request<'a>
impl<'de, 'a> Deserialize<'de> for Request<'a>
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<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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