Repository navigation
Features
- Add
HeaderMap::retain()to keep header values that match a predicate.
Fixes
- Fix
HeaderValuestring conversions to reject non-ASCII characters. - Fix validation of long header names passed to
HeaderMapas strings. - Fix
HeaderName::from_lowercase()andfrom_static()to reject double quotes. - Fix
HeaderMapiterators that could overestimate their remaining length insize_hint(). - Fix
header::OccupiedEntry::insert_mult()panicking when replacing three or more values. - Fix
Uriparsing to recognizehttpandhttpsregardless of case. - Fix
Uriformatting to omit the*path when a scheme and authority are present. - Fix
Authority::from_static()to reject trailing bytes left over after parsing.
Performance
- Reduce the size of
HeaderMap. - Reduce integer conversions to
HeaderValueto one allocation. - Speed up URI parsing by optimizing authority scanning and scheme detection.
The whole thing
- fix(header): enforce string constructors to only allow ASCII by @seanmonstar in #860
- fix(header): enforce long valid header names in IntoHeaderName by @seanmonstar in #864
- docs(header): correct HeaderMap max capacity and clarify reserve panic by @ChrisJr404 in #865
- test(header): fix trait bounds in test_bounds to Send + Sync (#783) by @CyberneticX-Tech in #867
- fix(header): map size_hint() could sometimes report 1 extra by @seanmonstar in #870
- perf(header): reduce HeaderMap layout size with less used fields by @seanmonstar in #866
- test: add integration tests checking pattern matching is allowed by @seanmonstar in #872
- fix(header): reject double quote in HEADER_CHARS_H2 by @choudhryfrompak in #876
- fix(header): don't panic in OccupiedEntry::insert_mult with 3 or more values by @Shaisolaris in #878
- perf(header): allocate once in HeaderValue::from for integers by @patrick-immometrica in #885
- test(header): add headermap adaptive hashing test by @imakashy00 in #880
- fix(uri): parse uppercase http/https as standard schemes by @patrick-immometrica in #883
- fix(uri): don't glue
*onto the authority in Display by @patrick-immometrica in #884 - Remove outdated section in doc by @avandecreme in #889
- fix(uri): reject unconsumed trailing bytes in Authority::from_static by @duongynhi000005-oss in #882
- test: miri ignore the adaptive hashing test by @seanmonstar in #893
- feat(header): add HeaderMap::retain by @cgzones in #892
- perf(uri): faster authority scan and scheme split by @g4lb in #887
New Contributors
- @ChrisJr404 made their first contribution in #865
- @CyberneticX-Tech made their first contribution in #867
- @choudhryfrompak made their first contribution in #876
- @Shaisolaris made their first contribution in #878
- @patrick-immometrica made their first contribution in #885
- @imakashy00 made their first contribution in #880
- @avandecreme made their first contribution in #889
- @duongynhi000005-oss made their first contribution in #882
- @cgzones made their first contribution in #892
- @g4lb made their first contribution in #887
Full Changelog: v1.5.0...v1.6.0