Struct viz_core::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 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,
pub async fn form<T>(&mut self) -> Result<T, PayloadError> where
T: DeserializeOwned + Send + Sync,
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
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more