seanmonstar / reqwest

An easy and powerful Rust HTTP Client
https://docs.rs/reqwest
Apache License 2.0
9.95k stars 1.13k forks source link

feat(client-builder): Add `http2_max_header_list_size` to the client builder #2465

Closed DSharifi closed 3 weeks ago

DSharifi commented 3 weeks ago

Currently the max size of received header frames for HTTP2 responses defaults to the 16KB when creating a hyper client. The 16KB default is defined in hyper::proto::h2::DEFAULT_MAX_HEADER_LIST_SIZE.

This PR adds support to override this default value, to allow for custom limits of the maximum header sizes being received in HTTP/2 responses.

seanmonstar commented 3 weeks ago

I'd be happy to add this. Looks like CI noticed that we need to bump the minimal version of hyper-util to use this.

DSharifi commented 3 weeks ago

Thanks. Bumped the hyper util dependency version to 0.1.10.