Struct spin_sdk::http::ResponseOutparam
source · pub struct ResponseOutparam(/* private fields */);
Expand description
The out param for setting an OutgoingResponse
Implementations§
source§impl ResponseOutparam
impl ResponseOutparam
sourcepub fn set(self, response: OutgoingResponse)
pub fn set(self, response: OutgoingResponse)
Set the outgoing response
sourcepub async fn set_with_body(
self,
response: OutgoingResponse,
buffer: Vec<u8>
) -> Result<(), Error>
pub async fn set_with_body( self, response: OutgoingResponse, buffer: Vec<u8> ) -> Result<(), Error>
Set with the outgoing response and the supplied buffer
Will panic if response body has already been taken
sourcepub fn into_inner(self) -> ResponseOutparam
pub fn into_inner(self) -> ResponseOutparam
Return the inner, wit-bindgen
-generated instance
Auto Trait Implementations§
impl RefUnwindSafe for ResponseOutparam
impl Send for ResponseOutparam
impl Sync for ResponseOutparam
impl Unpin for ResponseOutparam
impl UnwindSafe for ResponseOutparam
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