Trait treemux::RequestExt

source ·
pub trait RequestExt {
    // Required methods
;
;
;
;
}
Expand description

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

Required Methods§

source

The route parameters if any.

source

The matched route pattern

source

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

source

Contains the application context when created with into_service_with_context

Implementations on Foreign Types§

source§

impl RequestExt for Request<Body>

source§

fn params(&self) -> &Params

source§

fn remote_addr(&self) -> SocketAddr

source§

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

source§

fn route(&self) -> &str

Implementors§