Struct viz::prelude::Context [−][src]
pub struct Context { /* fields omitted */ }
Expand description
The Context
of an HTTP request - response
.
Implementations
Returns a reference to the associated host portion of the URL.
Returns a reference to the associated header by key.
Returns a value by header key.
Returns a reference to the associated header field map.
Returns a reference to the associated extensions.
Returns a mutable reference to the associated extensions.
Returns a reference to the associated middleware.
Returns a mutable reference to the associated middleware.
Returns a data from the Context
with a Extractor.
pub async fn form<T>(&'_ mut self) -> Result<T, PayloadError> where
T: DeserializeOwned + Send + Sync,
[src]
pub async fn form<T>(&'_ mut self) -> Result<T, PayloadError> where
T: DeserializeOwned + Send + Sync,
[src]Extracts Form Data from the request’ body.
Extracts JSON Data from the request’ body.
Extracts Multipart from the request’ body.
Gets parameters.
Gets query parameters from the path
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context