pub struct FulfillRequestCommand { /* private fields */ }Available on crate features
Fetch and Network and IO and Page only.Expand description
Provides response to the request.
Implementations§
Source§impl FulfillRequestCommand
impl FulfillRequestCommand
pub fn builder() -> FulfillRequestCommandBuilder
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
An id the client received in requestPaused event.
Sourcepub fn response_code(&self) -> u32
pub fn response_code(&self) -> u32
An HTTP response code.
Sourcepub fn response_headers(&self) -> Option<&Vec<HeaderEntry>>
pub fn response_headers(&self) -> Option<&Vec<HeaderEntry>>
Response headers.
Sourcepub fn binary_response_headers(&self) -> Option<&String>
pub fn binary_response_headers(&self) -> Option<&String>
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(&self) -> Option<&String>
pub fn response_phrase(&self) -> Option<&String>
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Trait Implementations§
Source§impl Clone for FulfillRequestCommand
impl Clone for FulfillRequestCommand
Source§fn clone(&self) -> FulfillRequestCommand
fn clone(&self) -> FulfillRequestCommand
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 Command for FulfillRequestCommand
impl Command for FulfillRequestCommand
Source§impl Debug for FulfillRequestCommand
impl Debug for FulfillRequestCommand
Source§impl<'de> Deserialize<'de> for FulfillRequestCommand
impl<'de> Deserialize<'de> for FulfillRequestCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FulfillRequestCommand
impl RefUnwindSafe for FulfillRequestCommand
impl Send for FulfillRequestCommand
impl Sync for FulfillRequestCommand
impl Unpin for FulfillRequestCommand
impl UnwindSafe for FulfillRequestCommand
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