sagebind / isahc

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

Return true for Body::is_empty for HEAD responses #343

Closed sagebind closed 3 years ago

sagebind commented 3 years ago

Fixes #341.

codecov[bot] commented 3 years ago

Codecov Report

Merging #343 (8a9a5c5) into master (422d4b0) will decrease coverage by 0.23%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #343      +/-   ##
==========================================
- Coverage   75.32%   75.09%   -0.24%     
==========================================
  Files          59       59              
  Lines        3218     3228      +10     
==========================================
  Hits         2424     2424              
- Misses        794      804      +10     
Impacted Files Coverage Δ
src/client.rs 74.55% <100.00%> (+1.24%) :arrow_up:
tests/response_body.rs 100.00% <100.00%> (ø)
src/cookies/psl/mod.rs 80.48% <0.00%> (-2.44%) :arrow_down:
src/agent/mod.rs 70.73% <0.00%> (-2.44%) :arrow_down:
src/redirect.rs 69.04% <0.00%> (-1.55%) :arrow_down:
src/config/request.rs 73.97% <0.00%> (-1.37%) :arrow_down:
testserver/src/mock.rs 79.22% <0.00%> (-1.30%) :arrow_down:
src/agent/selector.rs 73.25% <0.00%> (-1.17%) :arrow_down:
src/error.rs 49.71% <0.00%> (-1.15%) :arrow_down:
src/body/sync.rs 81.18% <0.00%> (-1.00%) :arrow_down:
... and 6 more

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 422d4b0...8a9a5c5. Read the comment docs.