Struct hpack_codec::Encoder
[−]
[src]
pub struct Encoder { /* fields omitted */ }
HPACK Encoder.
Methods
impl Encoder
[src]
fn new(max_dynamic_table_size: u16) -> Self
[src]
Makes a new Encoder
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)
[src]
Sets the hard limit of the dynamic table size of this encoder.
fn set_dynamic_table_size_soft_limit(&mut self, max_size: u16) -> Result<()>
[src]
Sets the soft limit of the dynamic table size of this encoder.
Errors
If max_size
exceeds the hard limit of this, an error will be returned.
fn enter_header_block<W: Write>(
&mut self,
block: W
) -> Result<HeaderBlockEncoder<W>>
[src]
&mut self,
block: W
) -> Result<HeaderBlockEncoder<W>>
Returns a HeaderBlockEncoder
instance for encoding header fields to the block
.