Respect SETTINGS_HEADER_TABLE_SIZE (#459)

This commit is contained in:
Sean McArthur
2020-03-30 11:53:22 -07:00
committed by GitHub
parent 20efc46597
commit e41a1f130c
7 changed files with 121 additions and 3 deletions

View File

@@ -107,6 +107,16 @@ impl Settings {
self.enable_push = Some(enable as u32);
}
pub fn header_table_size(&self) -> Option<u32> {
self.header_table_size
}
/*
pub fn set_header_table_size(&mut self, size: Option<u32>) {
self.header_table_size = size;
}
*/
pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error> {
use self::Setting::*;