feat(body): implement http_body::Body for hyper::Body

This adds a `http_body::Body` impl for hypers `Body`. This should
allow us to start moving to a more generic body trait based on
`BufStream` and `http-body`.
This commit is contained in:
Lucio Franco
2019-05-16 17:21:42 -04:00
committed by Sean McArthur
parent 973f981aa5
commit 2d9f3490aa
3 changed files with 35 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ extern crate bytes;
#[cfg(feature = "runtime")] extern crate futures_cpupool;
extern crate h2;
#[doc(hidden)] pub extern crate http;
extern crate http_body;
extern crate httparse;
extern crate iovec;
extern crate itoa;
@@ -29,6 +30,7 @@ extern crate itoa;
#[cfg(feature = "runtime")] extern crate net2;
extern crate time;
#[cfg(feature = "runtime")] extern crate tokio;
extern crate tokio_buf;
#[cfg(feature = "runtime")] extern crate tokio_executor;
#[macro_use] extern crate tokio_io;
#[cfg(feature = "runtime")] extern crate tokio_reactor;