Add a setter for header_table_size

This commit is contained in:
4JX
2022-08-16 16:34:15 +02:00
parent 88b0789254
commit 4e6d835094
5 changed files with 49 additions and 3 deletions

View File

@@ -88,6 +88,12 @@ impl<T> FramedRead<T> {
pub fn set_max_header_list_size(&mut self, val: usize) {
self.max_header_list_size = val;
}
/// Update the header table size setting.
#[inline]
pub fn set_header_table_size(&mut self, val: usize) {
self.hpack.queue_size_update(val);
}
}
/// Decodes a frame.