Crate luminal_router

Source
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§

FnRouteBuilder
LuminalError
The Error type.
Router
Router for Hyper.
ServiceRouteBuilder
Fluent builder, takes ownership of a Router while adding routes.

Enums§

LuminalErrorKind
The kind of an error.

Type Aliases§

LuminalFuture
Convenience, especially for hyper::service::service_fn.