From 0fbc92fd726d65bf69bb1c3050649b1b8eeaa942 Mon Sep 17 00:00:00 2001
From: Copilot <198982749+Copilot@users.noreply.github.com>
Date: Mon, 2 Mar 2026 16:48:56 +0100
Subject: [PATCH 1/2] feat: add http2_header_table_size to Builder in client.rs
(#1)
Adds `http2_header_table_size` method to the client `Builder`
---
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: barjin <61918049+barjin@users.noreply.github.com>
---
src/client/legacy/client.rs | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs
index c9d00800..7e2b2bd6 100644
--- a/src/client/legacy/client.rs
+++ b/src/client/legacy/client.rs
@@ -1426,6 +1426,18 @@ impl Builder {
self
}
+ /// Sets the header table size to use for HTTP2.
+ ///
+ /// Passing `None` will do nothing.
+ ///
+ /// If not set, hyper will use a default.
+ #[cfg(feature = "http2")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
+ pub fn http2_header_table_size(&mut self, size: impl Into