Struct chrome_remote_interface_model::network::Request[][src]

pub struct Request { /* fields omitted */ }
This is supported on crate features Network and Debugger and Runtime and Security only.

HTTP request data.

Implementations

impl Request[src]

pub fn builder() -> RequestBuilder[src]

pub fn url(&self) -> &str[src]

Request URL (without fragment).

pub fn url_fragment(&self) -> Option<&String>[src]

Fragment of the requested URL starting with hash, if present.

pub fn method(&self) -> &str[src]

HTTP request method.

pub fn headers(&self) -> &Headers[src]

HTTP request headers.

pub fn post_data(&self) -> Option<&String>[src]

HTTP POST request data.

pub fn has_post_data(&self) -> Option<&bool>[src]

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.

pub fn post_data_entries(&self) -> Option<&Vec<PostDataEntry>>[src]

This is supported on crate feature experimental only.

Request body elements. This will be converted from base64 to binary

pub fn mixed_content_type(&self) -> Option<&MixedContentType>[src]

The mixed content type of the request.

pub fn initial_priority(&self) -> &ResourcePriority[src]

Priority of the resource request at the time request is sent.

pub fn referrer_policy(&self) -> &RequestReferrerPolicy[src]

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

Whether is loaded via link preload.

pub fn trust_token_params(&self) -> Option<&JsonValue>[src]

This is supported on crate feature experimental only.

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.

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

impl<'de> Deserialize<'de> for Request[src]

impl Serialize for Request[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.