Skip to content

Commit

Permalink
fix(h2): add http2_max_header_list_size to hyper::server::Builder
Browse files Browse the repository at this point in the history
fix incomplete changes introduced from hyperium#2828
  • Loading branch information
jiahaoliang committed Oct 8, 2022
1 parent 287d712 commit e790d1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/server.rs
Expand Up @@ -425,6 +425,16 @@ impl<I, E> Builder<I, E> {
self
}

/// Sets the max size of received header frames.
///
/// Default is currently ~16MB, but may change.
#[cfg(feature = "http2")]
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
pub fn http2_max_header_list_size(mut self, max: u32) -> Self {
self.protocol.http2_max_header_list_size(max);
self
}

/// Sets the [`SETTINGS_MAX_CONCURRENT_STREAMS`][spec] option for HTTP2
/// connections.
///
Expand Down

0 comments on commit e790d1f

Please sign in to comment.