@@ -53,6 +53,7 @@ pub(crate) struct Config {
5353 pub ( crate ) keep_alive_interval : Option < Duration > ,
5454 pub ( crate ) keep_alive_timeout : Duration ,
5555 pub ( crate ) max_send_buffer_size : usize ,
56+ pub ( crate ) header_table_size : Option < u32 > ,
5657 pub ( crate ) max_header_list_size : u32 ,
5758 pub ( crate ) date_header : bool ,
5859}
@@ -68,6 +69,7 @@ impl Default for Config {
6869 max_concurrent_streams : Some ( 200 ) ,
6970 max_pending_accept_reset_streams : None ,
7071 max_local_error_reset_streams : Some ( DEFAULT_MAX_LOCAL_ERROR_RESET_STREAMS ) ,
72+ header_table_size : None ,
7173 keep_alive_interval : None ,
7274 keep_alive_timeout : Duration :: from_secs ( 20 ) ,
7375 max_send_buffer_size : DEFAULT_MAX_SEND_BUF_SIZE ,
@@ -142,6 +144,9 @@ where
142144 if let Some ( max) = config. max_pending_accept_reset_streams {
143145 builder. max_pending_accept_reset_streams ( max) ;
144146 }
147+ if let Some ( size) = config. header_table_size {
148+ builder. header_table_size ( size) ;
149+ }
145150 if config. enable_connect_protocol {
146151 builder. enable_connect_protocol ( ) ;
147152 }
0 commit comments