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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.