Struct chrome_remote_interface_model::fetch::FulfillRequestCommandBuilder[][src]

pub struct FulfillRequestCommandBuilder { /* fields omitted */ }
This is supported on crate features Fetch and Network and IO and Page only.

Implementations

impl FulfillRequestCommandBuilder[src]

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

An id the client received in requestPaused event.

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

An HTTP response code.

pub fn response_headers(&mut self, v: Vec<HeaderEntry>) -> &mut Self[src]

Response headers.

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

Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text.

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

A response body.

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

A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.

pub fn build(&mut self) -> Result<FulfillRequestCommand, &'static str>[src]

Trait Implementations

impl Clone for FulfillRequestCommandBuilder[src]

impl Debug for FulfillRequestCommandBuilder[src]

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