Skip to content

Commit

Permalink
feat(http2): add http2_max_header_list_size to `hyper::server::Buil…
Browse files Browse the repository at this point in the history
…der` (#3006)

fix incomplete changes introduced from #2828
  • Loading branch information
jiahaoliang authored Dec 20, 2022
1 parent d32beb3 commit 031425f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/server.rs
Original file line number Diff line number Diff line change
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 031425f

Please sign in to comment.