Repository navigation
breaking: use http types internally - #259
danieleades wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
de30402 to
f30b5e3
Compare
|
Hi! Could you please describe how this would affect people using this crate? What do we gain from internalizing the types? Also, are all changes in this PR correlated and breaking or could it be split up into multiple PRs? Thanks! |
it certainly could be split into separate PRs- happy to do that if useful. In fact #208 is one part of this already. the benefit is that this crate is currently using stringly-typed fields now, and converting to and from there's no real benefit to consumers- it's a maintainability win |
f30b5e3 to
75e8c6f
Compare
|
Split this out as requested:
I’ve closed this combined version so each change can be reviewed independently. |
|
Keeping this combined PR open as a draft for reference. The split PRs are ready for review:
Each now has its own rationale, breaking-change notes, production-code estimate and focused test coverage. |
75e8c6f to
55945d1
Compare
Summary
This is a breaking change.
Requests and dynamic responses now keep their
httptypes internally. Request authorities are parsed once, and the public interface exposes borrowed typed values instead of rebuilding them from strings.This removes redundant request accessors and response conversions. It also fixes the IPv6 authority parsing covered by #208.
This is based on #258.
Checks
cargo testcargo test --all-features --libcargo clippy --all-targets --all-features