Process response

This commit is contained in:
Carl Lerche
2017-06-27 01:34:37 -07:00
parent 7897b770e9
commit 1f85d54cff
8 changed files with 112 additions and 13 deletions

View File

@@ -36,6 +36,8 @@ pub use error::{ConnectionError, StreamError, Reason};
pub use frame::{StreamId};
pub use proto::Connection;
use bytes::Bytes;
/// An H2 connection frame
#[derive(Debug)]
pub enum Frame<T> {
@@ -46,7 +48,7 @@ pub enum Frame<T> {
},
Body {
id: StreamId,
chunk: (),
chunk: Bytes,
end_of_stream: bool,
},
Trailers {
@@ -80,5 +82,5 @@ pub trait Peer {
end_of_stream: bool) -> frame::Headers;
#[doc(hidden)]
fn convert_poll_message(headers: frame::Headers) -> Frame<Self::Poll>;
fn convert_poll_message(headers: frame::Headers) -> Self::Poll;
}