sagebind / isahc

The practical HTTP client that is fun to use.
https://docs.rs/isahc
MIT License
711 stars 62 forks source link

Allow checking HTTP version support at runtime #368

Closed sagebind closed 2 years ago

sagebind commented 2 years ago

Add is_http_version_supported which allows you to check which HTTP versions are supported by a particular build of Isahc at runtime. This could be used to decide whether an application would choose to enforce HTTP/2 for example, or just to verify that build configuration is as expected.

codecov[bot] commented 2 years ago

Codecov Report

Merging #368 (26c6936) into master (f3b5c3c) will increase coverage by 0.14%. The diff coverage is 80.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #368      +/-   ##
==========================================
+ Coverage   79.34%   79.48%   +0.14%     
==========================================
  Files          51       52       +1     
  Lines        3060     3086      +26     
==========================================
+ Hits         2428     2453      +25     
- Misses        632      633       +1     
Impacted Files Coverage Δ
src/lib.rs 76.19% <ø> (+14.65%) :arrow_up:
src/info.rs 80.64% <80.64%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f3b5c3c...26c6936. Read the comment docs.