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
fn remote_addr(&self) -> SocketAddr
fn remote_addr(&self) -> SocketAddr
The remote address for the request, also respects X-Forwarded-For