Add a setter for header_table_size

This commit is contained in:
4JX
2022-08-17 17:13:12 +02:00
parent d05d0a7a93
commit ee6d3fd5e1
2 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,10 +1,11 @@
target
Cargo.lock
h2spec
.history
# These are backup files generated by rustfmt
**/*.rs.bk
# Files generated by honggfuzz
hfuzz_target
hfuzz_workspace
hfuzz_workspace

View File

@@ -1022,6 +1022,12 @@ impl Builder {
self
}
/// Sets the header table size
pub fn header_table_size(&mut self, size: u32) -> &mut Self {
self.settings.set_header_table_size(Some(size));
self
}
/// Sets the first stream ID to something other than 1.
#[cfg(feature = "unstable")]
pub fn initial_stream_id(&mut self, stream_id: u32) -> &mut Self {