Respect SETTINGS_HEADER_TABLE_SIZE (#459)
This commit is contained in:
@@ -271,6 +271,11 @@ impl<T, B> FramedWrite<T, B> {
|
||||
self.max_frame_size = val as FrameSize;
|
||||
}
|
||||
|
||||
/// Set the peer's header table size.
|
||||
pub fn set_header_table_size(&mut self, val: usize) {
|
||||
self.hpack.update_max_size(val);
|
||||
}
|
||||
|
||||
/// Retrieve the last data frame that has been sent
|
||||
pub fn take_last_data_frame(&mut self) -> Option<frame::Data<B>> {
|
||||
self.last_data_frame.take()
|
||||
|
||||
@@ -89,6 +89,11 @@ impl<T, B> Codec<T, B> {
|
||||
self.framed_write().set_max_frame_size(val)
|
||||
}
|
||||
|
||||
/// Set the peer's header table size size.
|
||||
pub fn set_send_header_table_size(&mut self, val: usize) {
|
||||
self.framed_write().set_header_table_size(val)
|
||||
}
|
||||
|
||||
/// Set the max header list size that can be received.
|
||||
pub fn set_max_recv_header_list_size(&mut self, val: usize) {
|
||||
self.inner.set_max_header_list_size(val);
|
||||
|
||||
Reference in New Issue
Block a user