Struct chrome_remote_interface_model::fetch::FulfillRequestCommandBuilder [−][src]
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]
fn clone(&self) -> FulfillRequestCommandBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FulfillRequestCommandBuilder
[src]
impl Default for FulfillRequestCommandBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for FulfillRequestCommandBuilder
[src]
impl Send for FulfillRequestCommandBuilder
[src]
impl Sync for FulfillRequestCommandBuilder
[src]
impl Unpin for FulfillRequestCommandBuilder
[src]
impl UnwindSafe for FulfillRequestCommandBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,