Crates.io | luminal-handler |
lib.rs | luminal-handler |
version | 0.0.5 |
source | src |
created_at | 2018-03-12 20:34:54.976709 |
updated_at | 2018-03-25 20:18:29.284876 |
description | Slightly more convenient API on top of hyper::server::Service |
homepage | http://github.com/commandline/luminal/router |
repository | http://github.com/commandline/luminal |
max_upload_size | |
id | 55222 |
size | 7,952 |
A crate to provide a trait to implement and a function to call to lift non-future aware request handling into hyper.
hyper::server::Service
isn't a super forgiving API. It exposes the plumbing of futures pretty directly and makes error handling unclear. It is hoped that this create provides an easier API without sacrificing much, if any performance. In particular, the trait IntoResponse
is introduced to help caller's use their own error kinds, layering in what is needed to convert those errors into valid hyper::server::Response
instances.