Wire up Trailers frame
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user