Expand description
Defines the Gotham Router
and supporting types.
Re-exports§
pub use builder::build_router;
pub use builder::build_simple_router;
Modules§
- builder
- Defines a builder API for constructing a
Router
. - response
- Defines
Router
functionality which acts on theResponse
- route
- Defines types that support individual application routes.
- tree
- Defines a hierarchial
Tree
with subtrees ofNode
.
Structs§
- Route
NonMatch - The error type used for a non-matching route, as returned by
RouteMatcher::is_match
. Multiple values of this type can be combined by matchers that are wrapping other matchers, using theintersection
/union
methods. The data within is used by theRouter
to create aResponse
when no routes were successfully matched. - Router
- Responsible for dispatching HTTP requests to defined routes, and responding with appropriate
error codes when a valid
Route
is unable to be determined or the dispatch cannot be performed.