Struct spin_sdk::http::IncomingRequest
source · pub struct IncomingRequest { /* private fields */ }
Expand description
The following block defines the incoming-request
and outgoing-request
resource types that correspond to HTTP standard Requests.
The consume
and write
methods may only be called once (and
return failure thereafter).
Implementations§
source§impl IncomingRequest
impl IncomingRequest
pub fn path_with_query(&self) -> Option<String>
source§impl IncomingRequest
impl IncomingRequest
Trait Implementations§
source§impl Debug for IncomingRequest
impl Debug for IncomingRequest
source§impl TryFromIncomingRequest for IncomingRequest
impl TryFromIncomingRequest for IncomingRequest
§type Error = Infallible
type Error = Infallible
The error if conversion fails
source§fn try_from_incoming_request<'async_trait>(
request: IncomingRequest
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn try_from_incoming_request<'async_trait>(
request: IncomingRequest
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
Try to turn the
IncomingRequest
into the implementing typesource§impl WasmResource for IncomingRequest
impl WasmResource for IncomingRequest
Auto Trait Implementations§
impl RefUnwindSafe for IncomingRequest
impl Send for IncomingRequest
impl Sync for IncomingRequest
impl Unpin for IncomingRequest
impl UnwindSafe for IncomingRequest
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