Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b088466fea | ||
|
|
7c45fd1657 | ||
|
|
ee6d3fd5e1 | ||
|
|
d05d0a7a93 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,10 +1,11 @@
|
|||||||
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
|
||||||
|
|
||||||
# Files generated by honggfuzz
|
# Files generated by honggfuzz
|
||||||
hfuzz_target
|
hfuzz_target
|
||||||
hfuzz_workspace
|
hfuzz_workspace
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -686,13 +686,13 @@ impl Iterator for Iter {
|
|||||||
return Some(Method(method));
|
return Some(Method(method));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(scheme) = pseudo.scheme.take() {
|
|
||||||
return Some(Scheme(scheme));
|
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(authority) = pseudo.authority.take() {
|
if let Some(authority) = pseudo.authority.take() {
|
||||||
return Some(Authority(authority));
|
return Some(Authority(authority));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(scheme) = pseudo.scheme.take() {
|
||||||
|
return Some(Scheme(scheme));
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(path) = pseudo.path.take() {
|
if let Some(path) = pseudo.path.take() {
|
||||||
return Some(Path(path));
|
return Some(Path(path));
|
||||||
|
|||||||
@@ -120,12 +120,10 @@ impl Settings {
|
|||||||
pub fn header_table_size(&self) -> Option<u32> {
|
pub fn header_table_size(&self) -> Option<u32> {
|
||||||
self.header_table_size
|
self.header_table_size
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
pub fn set_header_table_size(&mut self, size: Option<u32>) {
|
pub fn set_header_table_size(&mut self, size: Option<u32>) {
|
||||||
self.header_table_size = size;
|
self.header_table_size = size;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error> {
|
pub fn load(head: Head, payload: &[u8]) -> Result<Settings, Error> {
|
||||||
use self::Setting::*;
|
use self::Setting::*;
|
||||||
|
|||||||
Reference in New Issue
Block a user