Add a setter for header_table_size
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
target
|
target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
h2spec
|
h2spec
|
||||||
|
.history
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
# These are backup files generated by rustfmt
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|||||||
@@ -1022,6 +1022,12 @@ impl Builder {
|
|||||||
self
|
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.
|
/// Sets the first stream ID to something other than 1.
|
||||||
#[cfg(feature = "unstable")]
|
#[cfg(feature = "unstable")]
|
||||||
pub fn initial_stream_id(&mut self, stream_id: u32) -> &mut Self {
|
pub fn initial_stream_id(&mut self, stream_id: u32) -> &mut Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user