Type Alias Request

Source
pub type Request = Request<Body>;
Expand description

Convenience wrapper for http::Request<hyper::Body>

Aliased Type§

pub struct Request { /* private fields */ }

Trait Implementations§

Source§

impl RequestExtensions for Request

Source§

fn captures(&self) -> Option<&Captures>

Any captures provided by the matching Regex for the current path
Source§

fn data<T: Send + Sync + 'static>(&self) -> Option<Data<T>>

Copy of any data passed into the router builder using data or wrapped_data
Source§

fn parsed_captures<C: FromCaptures>(&self) -> Result<C>

Positional captures parsed into FromStr types, in tuple format