Wire up Trailers frame

This commit is contained in:
Carl Lerche
2017-08-02 11:34:34 -07:00
parent 33bdc057d6
commit a3cbf2d7ac
6 changed files with 50 additions and 18 deletions

View File

@@ -41,6 +41,8 @@ pub use proto::Connection;
use bytes::Bytes;
pub type FrameSize = u32;
// TODO: remove if carllerche/http#90 lands
pub type HeaderMap = http::HeaderMap<http::header::HeaderValue>;
/// An H2 connection frame
#[derive(Debug)]
@@ -57,7 +59,7 @@ pub enum Frame<T, B = Bytes> {
},
Trailers {
id: StreamId,
headers: (),
headers: HeaderMap,
},
PushPromise {
id: StreamId,