Trait treemux::RequestExt[][src]

pub trait RequestExt {
    fn params(&self) -> &Params;
fn route(&self) -> &str;
fn remote_addr(&self) -> SocketAddr;
fn app_context<T: Send + Sync + 'static>(&self) -> Option<Arc<T>>; }
Expand description

Extensions to the request object for accessing the route parameters, remote address

Required methods

The route parameters if any.

The matched route pattern

The remote address for the request, also respects X-Forwarded-For

Contains the application context when created with into_service_with_context

Implementations on Foreign Types

Implementors