Skip to content

Commit 30f38c8

Browse files
authored
feat(client): Expose http2::builder::max_header_list_size in the client builder (#154)
1 parent aa90ce5 commit 30f38c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/client/legacy/client.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,16 @@ impl Builder {
13871387
self
13881388
}
13891389

1390+
/// Sets the max size of received header frames for HTTP2.
1391+
///
1392+
/// Default is currently 16KB, but can change.
1393+
#[cfg(feature = "http2")]
1394+
#[cfg_attr(docsrs, doc(cfg(feature = "http2")))]
1395+
pub fn http2_max_header_list_size(&mut self, max: u32) -> &mut Self {
1396+
self.h2_builder.max_header_list_size(max);
1397+
self
1398+
}
1399+
13901400
/// Sets an interval for HTTP2 Ping frames should be sent to keep a
13911401
/// connection alive.
13921402
///

0 commit comments

Comments
 (0)