Much work

This commit is contained in:
Carl Lerche
2017-08-03 15:50:13 -07:00
parent 7a804601c5
commit dd8412d660
11 changed files with 211 additions and 104 deletions

View File

@@ -25,8 +25,7 @@ pub struct Client<T, B: IntoBuf> {
/// Client half of an active HTTP/2.0 stream.
pub struct Stream<B: IntoBuf> {
inner: proto::Stream<Peer>,
_p: ::std::marker::PhantomData<B>,
inner: proto::StreamRef<Peer, B::Buf>,
}
impl<T> Client<T, Bytes>
@@ -86,7 +85,6 @@ impl<T, B> Client<T, B>
self.connection.send_request(request, end_of_stream)
.map(|stream| Stream {
inner: stream,
_p: ::std::marker::PhantomData,
})
}
}