pub struct Request {
pub url: String,
pub method: String,
pub headers: HashMap<String, String>,
pub post_data: Option<String>,
pub has_post_data: Option<bool>,
pub mixed_content_type: Option<String>,
pub referrer_policy: Option<String>,
pub is_link_preload: Option<bool>,
pub initial_priority: Option<String>,
}Expand description
HTTP request data.
Fields§
§url: StringRequest URL.
method: StringHTTP request method.
headers: HashMap<String, String>HTTP request headers.
post_data: Option<String>HTTP POST request data.
has_post_data: Option<bool>Whether the request has POST data.
mixed_content_type: Option<String>Request body mixed content type.
referrer_policy: Option<String>The referrer policy of the request.
is_link_preload: Option<bool>Whether is loaded via link preload.
initial_priority: Option<String>Priority of the resource request.
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