Expand description
Router for mapping hyper::Method and a request path to something that will response.
luminal’s router uses a simplified radix tree for speedy lookups. cargo +nightly bench to see
relative performance across some contrived examples.
The actual router implementation depends on the features used to build the crate. By default,
the Router implementation works with hyper::server::Service. Using the “handler” feature
switches to a Router that is aware of the luminal-handler create.
Structs§
- FnRoute
Builder - Luminal
Error - The Error type.
- Router
- Router for Hyper.
- Service
Route Builder - Fluent builder, takes ownership of a
Routerwhile adding routes.
Enums§
- Luminal
Error Kind - The kind of an error.
Type Aliases§
- Luminal
Future - Convenience, especially for
hyper::service::service_fn.