Header frame decoding

This commit is contained in:
Carl Lerche
2017-06-20 09:16:21 -07:00
parent 29951da962
commit a3950354aa
5 changed files with 126 additions and 31 deletions

View File

@@ -1,4 +1,6 @@
use hpack;
use error::{ConnectionError, Reason};
use bytes::{Bytes, BytesMut, BufMut};
use std::io;
@@ -92,6 +94,9 @@ pub enum Error {
/// This is returned if a settings frame is received with a stream
/// identifier other than zero.
InvalidStreamId,
/// Failed to perform HPACK decoding
Hpack(hpack::DecoderError),
}
// ===== impl Frame ======