Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow checking HTTP version support at runtime #368

Merged
merged 2 commits into from
Jan 10, 2022

Conversation

sagebind
Copy link
Owner

@sagebind sagebind commented Jan 8, 2022

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
Copy link

codecov bot commented Jan 8, 2022

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%) ⬆️
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.

@sagebind sagebind merged commit 37cdccd into master Jan 10, 2022
@sagebind sagebind deleted the is-http-version-supported branch January 10, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant