Expand description
Defines types that support individual application routes.
The Router
will identify one or more Route
instances that match the path of a request, and
iterate to find the first matching Route
(indicated by Route::is_match
). The request will
be dispatched to the first Route
which matches.
Modules
- Defines the route
Dispatcher
and supporting types. - Defines the type
RouteMatcher
and default implementations.
Structs
- Returned in the
Err
variant fromextract_query_string
orextract_request_path
, this signals that the extractor has failed and the request should not proceed. - Extractors used by
RouteImpl
to acquire request data and change into a type safe form for use byMiddleware
andHandler
implementations. - Concrete type for a route in a Gotham web application. Values of this type are created by the
gotham::router::builder
API and held internally in theRouter
for dispatching requests.
Enums
- Indicates whether this
Route
will dispatch the request to an innerRouter
instance. To support innerRouter
instances which handle a subtree, theDispatcher
stores additional context information.
Traits
- Values of the
Route
type are used by theRouter
to conditionally dispatch a request after matching the path segments successfully. The steps taken in dispatching to aRoute
are: