pub struct IncomingRequest { /* private fields */ }
Expand description
Represents an incoming HTTP Request.
Implementations§
Source§impl IncomingRequest
impl IncomingRequest
Sourcepub fn path_with_query(&self) -> Option<String>
pub fn path_with_query(&self) -> Option<String>
Returns the path with query parameters from the request, as a string.
Source§impl IncomingRequest
impl IncomingRequest
Returns the authority from the request, if it was present.
Source§impl IncomingRequest
impl IncomingRequest
Sourcepub fn headers(&self) -> Headers
pub fn headers(&self) -> Headers
Get the headers
associated with the request.
The returned headers
resource is immutable: set
, append
, and
delete
operations will fail with header-error.immutable
.
The headers
returned are a child resource: it must be dropped before
the parent incoming-request
is dropped. Dropping this
incoming-request
before all children are dropped will trap.
Trait Implementations§
Source§impl Debug for IncomingRequest
impl Debug for IncomingRequest
Source§impl TryFromIncomingRequest for IncomingRequest
impl TryFromIncomingRequest for IncomingRequest
Source§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 Freeze for IncomingRequest
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