Struct hpack_codec::Decoder
[−]
[src]
pub struct Decoder { /* fields omitted */ }
HPACK Decoder.
Methods
impl Decoder
[src]
fn new(max_dynamic_table_size: u16) -> Self
[src]
Makes a new Decoder
instance.
fn table(&self) -> &Table
[src]
Returns the indexing table of this decoder.
fn set_dynamic_table_size_hard_limit(&mut self, max_size: u16) -> Result<()>
[src]
Sets the hard limit of the dynamic table size of this decoder.
Errors
If the value of max_size
is greater than the soft limit of this decoder
(i.e., the value of self.table().dynamic().size_soft_limit()
),
an error will be returned.
fn enter_header_block<'a, 'b>(
&'a mut self,
block: &'b [u8]
) -> Result<HeaderBlockDecoder<'a, 'b>>
[src]
&'a mut self,
block: &'b [u8]
) -> Result<HeaderBlockDecoder<'a, 'b>>
Returns a HeaderBlockDecoder
instance for decoding the header block block
.