Struct spin_sdk::http::OutgoingResponse
source · pub struct OutgoingResponse { /* private fields */ }
Implementations§
source§impl OutgoingResponse
impl OutgoingResponse
pub fn new(status_code: StatusCode, headers: &Headers) -> Self
source§impl OutgoingResponse
impl OutgoingResponse
sourcepub fn write(&self) -> Result<OutgoingBody, ()>
pub fn write(&self) -> Result<OutgoingBody, ()>
Will give the child outgoing-response at most once. subsequent calls will return an error.
Trait Implementations§
source§impl Debug for OutgoingResponse
impl Debug for OutgoingResponse
source§impl From<Response> for OutgoingResponse
impl From<Response> for OutgoingResponse
source§impl WasmResource for OutgoingResponse
impl WasmResource for OutgoingResponse
Auto Trait Implementations§
impl RefUnwindSafe for OutgoingResponse
impl Send for OutgoingResponse
impl Sync for OutgoingResponse
impl Unpin for OutgoingResponse
impl UnwindSafe for OutgoingResponse
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