pub struct FulfillRequestCommandBuilder { /* private fields */ }Available on crate features
Fetch and Network and IO and Page only.Implementations§
Source§impl FulfillRequestCommandBuilder
impl FulfillRequestCommandBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
An id the client received in requestPaused event.
Sourcepub fn response_code(&mut self, v: u32) -> &mut Self
pub fn response_code(&mut self, v: u32) -> &mut Self
An HTTP response code.
Sourcepub fn response_headers(&mut self, v: Vec<HeaderEntry>) -> &mut Self
pub fn response_headers(&mut self, v: Vec<HeaderEntry>) -> &mut Self
Response headers.
Sourcepub fn binary_response_headers(&mut self, v: String) -> &mut Self
pub fn binary_response_headers(&mut self, v: String) -> &mut Self
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.
Sourcepub fn response_phrase(&mut self, v: String) -> &mut Self
pub fn response_phrase(&mut self, v: String) -> &mut Self
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
pub fn build(&mut self) -> Result<FulfillRequestCommand, &'static str>
Trait Implementations§
Source§impl Clone for FulfillRequestCommandBuilder
impl Clone for FulfillRequestCommandBuilder
Source§fn clone(&self) -> FulfillRequestCommandBuilder
fn clone(&self) -> FulfillRequestCommandBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FulfillRequestCommandBuilder
impl Debug for FulfillRequestCommandBuilder
Auto Trait Implementations§
impl Freeze for FulfillRequestCommandBuilder
impl RefUnwindSafe for FulfillRequestCommandBuilder
impl Send for FulfillRequestCommandBuilder
impl Sync for FulfillRequestCommandBuilder
impl Unpin for FulfillRequestCommandBuilder
impl UnwindSafe for FulfillRequestCommandBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more