Struct tower_web::extract::Context [−][src]
pub struct Context<'a> { /* fields omitted */ }Context available when extracting data from the HTTP request.
Primarily, Context includes a reference to the HTTP request in question.
Methods
impl<'a> Context<'a>[src]
impl<'a> Context<'a>pub fn request(&self) -> &Request<()>[src]
pub fn request(&self) -> &Request<()>Returns a reference to the HTTP request from which the data should be extracted.
pub fn config<T: Send + Sync + 'static>(&self) -> Option<&T>[src]
pub fn config<T: Send + Sync + 'static>(&self) -> Option<&T>Returns the stored configuration value of type T.