From 68a2d6efd9ebff656e6a138484768840fa3b5d27 Mon Sep 17 00:00:00 2001 From: Daniel Sharifi Date: Fri, 25 Oct 2024 17:23:57 +0200 Subject: [PATCH 1/2] . --- src/client/legacy/client.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs index 7948018..1b4ad34 100644 --- a/src/client/legacy/client.rs +++ b/src/client/legacy/client.rs @@ -1387,6 +1387,16 @@ impl Builder { self } + /// Sets the max size of received header frames for HTTP2. + /// + /// Default is currently 16KB, but can change. + #[cfg(feature = "http2")] + #[cfg_attr(docsrs, doc(cfg(feature = "http2")))] + pub fn max_header_list_size(&mut self, max: u32) -> &mut Self { + self.h2_builder.max_header_list_size(max); + self + } + /// Sets an interval for HTTP2 Ping frames should be sent to keep a /// connection alive. /// From 9988a6da1a349cbcb3273b97cc403939860c5b70 Mon Sep 17 00:00:00 2001 From: Daniel Sharifi <40335219+DSharifi@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:43:20 +0200 Subject: [PATCH 2/2] Update src/client/legacy/client.rs Co-authored-by: Sean McArthur --- src/client/legacy/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs index 1b4ad34..d37ab46 100644 --- a/src/client/legacy/client.rs +++ b/src/client/legacy/client.rs @@ -1392,7 +1392,7 @@ impl Builder { /// Default is currently 16KB, but can change. #[cfg(feature = "http2")] #[cfg_attr(docsrs, doc(cfg(feature = "http2")))] - pub fn max_header_list_size(&mut self, max: u32) -> &mut Self { + pub fn http2_max_header_list_size(&mut self, max: u32) -> &mut Self { self.h2_builder.max_header_list_size(max); self }