Struct chrome_remote_interface_model::network::RequestBuilder[][src]

pub struct RequestBuilder { /* fields omitted */ }

Implementations

impl RequestBuilder[src]

pub fn url(&mut self, v: String) -> &mut Self[src]

Request URL (without fragment).

pub fn url_fragment(&mut self, v: String) -> &mut Self[src]

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

pub fn method(&mut self, v: String) -> &mut Self[src]

HTTP request method.

pub fn headers(&mut self, v: Headers) -> &mut Self[src]

HTTP request headers.

pub fn post_data(&mut self, v: String) -> &mut Self[src]

HTTP POST request data.

pub fn has_post_data(&mut self, v: bool) -> &mut Self[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 mixed_content_type(&mut self, v: MixedContentType) -> &mut Self[src]

The mixed content type of the request.

pub fn initial_priority(&mut self, v: ResourcePriority) -> &mut Self[src]

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

pub fn referrer_policy(&mut self, v: RequestReferrerPolicy) -> &mut Self[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 build(&mut self) -> Result<Request, &'static str>[src]

Trait Implementations

impl Clone for RequestBuilder[src]

impl Debug for RequestBuilder[src]

impl Default for RequestBuilder[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> 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.