Struct actix_web::dev::Router [−][src]
pub struct Router<S> { /* fields omitted */ }
Interface for application router.
Methods
impl<S: 'static> Router<S>
[src]
impl<S: 'static> Router<S>
pub fn handle(&self, req: &HttpRequest<S>) -> AsyncResult<HttpResponse>
[src]
pub fn handle(&self, req: &HttpRequest<S>) -> AsyncResult<HttpResponse>
Handle request
pub fn recognize(&self, req: &Request, state: &S, tail: usize) -> ResourceInfo
[src]
pub fn recognize(&self, req: &Request, state: &S, tail: usize) -> ResourceInfo
Query for matched resource