Module route

Module route 

Source
Available on crate feature server only.
Expand description

Route module for routing path to Services or handlers.

This module includes Router, MethodRouter and Route. The call path is:

Router -> MethodRouter -> Route.

Router is the main router for routing path (uri) to MethodRouters. MethodRouter is a router for routing method (GET, POST, …) to Routes. Route is a handler or service for handling the request.

Re-exports§

pub use self::router::Router;
pub use self::method_router::*;

Modules§

method_router
MethodRouter implementation for Server.
router
Router implemententation for Server.

Structs§

Route
The route service used for Router.