Struct cdp::network::Request
[−]
[src]
pub struct Request<'a> { pub url: Cow<'a, str>, pub method: Cow<'a, str>, pub headers: Headers, pub post_data: Option<Cow<'a, str>>, pub mixed_content_type: Option<MixedContentType>, pub initial_priority: ResourcePriority, pub referrer_policy: RequestReferrerPolicy, pub is_link_preload: Option<bool>, }
HTTP request data.
Fields
url: Cow<'a, str>
Request URL.
method: Cow<'a, str>
HTTP request method.
headers: Headers
HTTP request headers.
post_data: Option<Cow<'a, str>>
HTTP POST request data.
mixed_content_type: Option<MixedContentType>
The mixed content type of the request.
initial_priority: ResourcePriority
Priority of the resource request at the time request is sent.
referrer_policy: RequestReferrerPolicy
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
is_link_preload: Option<bool>
Whether is loaded via link preload.
Trait Implementations
impl<'a> Clone for Request<'a>
[src]
fn clone(&self) -> Request<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more