Fix encoding, more interop and update nightly version

This commit is contained in:
Lucio Franco
2019-08-21 18:50:27 -04:00
parent 8dc1185a36
commit 93eb9989d6
23 changed files with 440 additions and 62 deletions
+5 -2
View File
@@ -12,9 +12,12 @@ tokio-io = "0.2.0-alpha.1"
tokio-executor = "0.2.0-alpha.1"
tower-service = { git = "http://github.com/tower-rs/tower", branch = "std-future" }
tower-util = { git = "http://github.com/tower-rs/tower", branch = "std-future" }
h2 = { git = "https://github.com/LucioFranco/h2", branch = "lucio/tower-h2-hack" }
# h2 = { git = "https://github.com/LucioFranco/h2", branch = "lucio/tower-h2-hack" }
# h2 = { git = "https://github.com/hyperium/h2" }
h2 = { path = "../../h2" }
http = "0.1"
http-body = { git = "https://github.com/hyperium/http-body" }
# http-body = { git = "https://github.com/hyperium/http-body" }
http-body = { path = "../../http-body" }
log = "0.4"
[dev-dependencies]
-2
View File
@@ -1,5 +1,3 @@
#![feature(async_await)]
use http::Request;
use std::pin::Pin;
use std::task::{Context, Poll};
-2
View File
@@ -1,5 +1,3 @@
#![feature(async_await)]
use futures_util::future;
use http::{Request, Response};
use std::pin::Pin;
-2
View File
@@ -1,5 +1,3 @@
#![feature(async_await)]
#[macro_use]
extern crate log;
+1 -1
View File
@@ -34,7 +34,7 @@ impl Body for RecvBody {
type Data = Data;
type Error = h2::Error;
fn is_end_stream(self: Pin<&mut Self>) -> bool {
fn is_end_stream(&self) -> bool {
self.inner.is_end_stream()
}