Crate luminal_handler [−] [src]
This create wraps hyper::server::Service
with a slightly more convenient interface.
The request is wrapped with a new enum that helps provide additional information along with the request and uses a more liberal error type to allow users to map their own error to an actual http response.
Structs
HandlerFn |
Holds a function to dispatch to via its impl of |
HandlerService |
An impl of |
Enums
HttpRequest |
Wraps a |
Traits
Handler |
Trait for handling a request, returning either a success |
Functions
handler_fn |
Accepts a function or closure that takes an |
Type Definitions
LuminalFuture |