Struct chromiumoxide_cdp::cdp::browser_protocol::network::Request [−][src]
pub struct Request { pub url: String, pub url_fragment: Option<String>, pub method: String, pub headers: Headers, pub post_data: Option<String>, 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>, }
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.
post_data: Option<String>
HTTP POST request data.
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. This will be converted from base64 to binary
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.
Implementations
Trait Implementations
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 RefUnwindSafe for Request
impl UnwindSafe for Request
Blanket Implementations
Mutably borrows from an owned value. Read more