Skip to content

Commit 031425f

Browse files
authored
feat(http2): add http2_max_header_list_size to hyper::server::Builder (#3006)
fix incomplete changes introduced from #2828
1 parent d32beb3 commit 031425f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/server/server.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,16 @@ impl<I, E> Builder<I, E> {
425425
self
426426
}
427427

428+
/// Sets the max size of received header frames.
429+
///
430+
/// Default is currently ~16MB, but may change.
431+
#[cfg(feature = "http2")]
432+
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
433+
pub fn http2_max_header_list_size(mut self, max: u32) -> Self {
434+
self.protocol.http2_max_header_list_size(max);
435+
self
436+
}
437+
428438
/// Sets the [`SETTINGS_MAX_CONCURRENT_STREAMS`][spec] option for HTTP2
429439
/// connections.
430440
///

0 commit comments

Comments
 (0)