pub struct Request {
pub url: String,
pub url_fragment: Option<String>,
pub method: String,
pub headers: Headers,
pub has_post_data: Option<bool>,
pub post_data_entries: Option<Vec<PostDataEntry>>,
pub mixed_content_type: Option<MixedContentType>,
pub initial_priority: ResourcePriority,
pub referrer_policy: RequestReferrerPolicy,
pub is_link_preload: Option<bool>,
pub trust_token_params: Option<TrustTokenParams>,
pub is_same_site: Option<bool>,
}
Expand description
HTTP request data. Request
Fields§
§url: String
Request URL (without fragment).
url_fragment: Option<String>
Fragment of the requested URL starting with hash, if present.
method: String
HTTP request method.
headers: Headers
HTTP request headers.
has_post_data: 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.
post_data_entries: Option<Vec<PostDataEntry>>
Request body elements (post data broken into individual entries).
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.
trust_token_params: Option<TrustTokenParams>
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.
is_same_site: Option<bool>
True if this resource request is considered to be the ‘same site’ as the request corresponding to the main frame.