HTTP/2 offers several improvements over HTTP/1.1, including multiplexing, header compression, and reduced latency.
Enabling HTTP/2 support in the jsonrpsee HTTP client aligns with modern web standards and provides potential performance benefits for applications using this library.
Branch Context:
This PR is based on the v0.20.x branch due to compatibility issues with certain crates that depend on older versions of zerois. These crates are not compatible with the newer versions of jsonrpsee. By maintaining and improving the v0.20.x branch, we ensure that users who depend on this version can still benefit from enhancements like HTTP/2 support without being forced to upgrade to a newer version of jsonrpsee that may not be compatible with their existing dependencies.
Notes:
This change maintains backward compatibility as the client will still support HTTP/1.1 when HTTP/2 is not available.
Motivation:
Branch Context:
Notes: