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§
- dispatch
- Defines the route
Dispatcherand supporting types. - matcher
- Defines the type
RouteMatcherand default implementations.
Structs§
- Extractor
Failed - Returned in the
Errvariant fromextract_query_stringorextract_request_path, this signals that the extractor has failed and the request should not proceed. - Extractors
- Extractors used by
RouteImplto acquire request data and change into a type safe form for use byMiddlewareandHandlerimplementations. - Route
Impl - Concrete type for a route in a Gotham web application. Values of this type are created by the
gotham::router::builderAPI and held internally in theRouterfor dispatching requests.
Enums§
- Delegation
- Indicates whether this
Routewill dispatch the request to an innerRouterinstance. To support innerRouterinstances which handle a subtree, theDispatcherstores additional context information.
Traits§
- Route
- Values of the
Routetype are used by theRouterto conditionally dispatch a request after matching the path segments successfully. The steps taken in dispatching to aRouteare: