Releases: hyperium/http
Releases Β· hyperium/http
v1.4.0
Highlights
- Add
StatusCode::EARLY_HINTSconstant for 103 Early Hints. - Make
StatusCode::from_u16now aconst fn. - Make
Authority::from_staticnow aconst fn. - Make
PathAndQuery::from_staticnow aconst fn. - MSRV increased to 1.57 (allows legible const fn panic messages).
What's Changed
- Updated Rand dependency to v0.9.1 by @FarzadMohtasham in #763
- Fix compilation on latest nightly by @akonradi-signal in #769
- Avoid unnecessary .expect()s for empty HeaderMap by @akonradi-signal in #768
- feat: show types in
Extensionsdebug output by @crepererum in #773 - Docs: Clarify the
HeaderMapdocumentaion by @Sol-Ell in #774 - style: update format for tests by @seanmonstar in #782
- Make
StatusCode::from_u16const by @coolreader18 in #761 - docs: Fix typo 'an' to 'and' in http::status module documentation by @zxzxovo in #784
- fix: Prevent panic in try_reserve/try_with_capacity on capacity overflow by @AriajSarkar in #787
- fix: Add reserve() to Extend impl for (Option, T)) by @AriajSarkar in #788
- chore: minor improvement for docs by @claudecodering in #790
- chore: bump MSRV to 1.57 by @seanmonstar in #793
- Add EARLY_HINTS status code by @mdevino in #758
- refactor(header): use better panic message in const HeaderName and HeaderValue by @seanmonstar in #797
- docs: remove unnecessary extern crate sentence by @tottoto in #799
- chore(ci): update to actions/checkout@v5 by @tottoto in #800
- feat(uri): make
Authority/PathAndQuery::from_staticconst by @WaterWhisperer in #786 - refactor(header): inline FNV hasher to reduce dependencies by @seanmonstar in #796
- v1.4.0 by @seanmonstar in #803
New Contributors
- @FarzadMohtasham made their first contribution in #763
- @akonradi-signal made their first contribution in #769
- @crepererum made their first contribution in #773
- @Sol-Ell made their first contribution in #774
- @coolreader18 made their first contribution in #761
- @zxzxovo made their first contribution in #784
- @AriajSarkar made their first contribution in #787
- @claudecodering made their first contribution in #790
- @mdevino made their first contribution in #758
- @WaterWhisperer made their first contribution in #786
Full Changelog: v1.3.1...v1.4.0
v1.3.1
What's Changed
- fix: validate path bytes are at least utf8 by @seanmonstar in #756
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
- Allow most UTF-8 characters in URI path and query. (#715)
- This means paring
Uris with previously illegal characters according the original RFC will now be accepted. They used to be rejected in the name of spec purity, but many operators were using a fork ofhttpbecause reality is that most characters are seen in the real world.
- This means paring
- Fix
HeaderMap::reserve()to allocate sufficient capacity.
New Contributors
- @joelwurtz made their first contribution in #715
- @ADD-SP made their first contribution in #738
- @kawaemon made their first contribution in #741
- @DaniPopes made their first contribution in #748
- @jpds made their first contribution in #695
Thanks!
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- Add
StatusCode::TOO_EARLYconstant for 425 status. (#725) - Loosen
TryFrom<HashMap>forHeaderMapto work with any state generic. (#729) - Change
Buildermethods to useTryIntoinstead ofTryFromarguments. (#730) - Make
StatusCode::as_u16aconstfunction. (#680) - Fix
Methodparsing to allow#$%&'characters. (#713) - Fix
HeaderNameparsing to reject"characters. (#716) - Fix off by 1 error in
Method::from_bytesthat could cause extra allocations. (#708) - Fix
HeaderMapcapacity calculation in some cases (#710)
New Contributors
- @lgmsantos made their first contribution in #559
- @Pi-Cla made their first contribution in #690
- @franfastly made their first contribution in #713
- @wyatt-herkamp made their first contribution in #714
- @chen-hongzhi made their first contribution in #716
- @39zde made their first contribution in #718
- @gretchenfrage made their first contribution in #722
- @alistaircarscadden made their first contribution in #724
- @cemoktra made their first contribution in #725
- @Qqwy made their first contribution in #729
- @SmolPatches made their first contribution in #730
- @dlzht made their first contribution in #708
- @asudox made their first contribution in #705
- @WhyNotHugo made their first contribution in #680
Thanks
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Add methods to allow trying to allocate in the
HeaderMap, returning an error if oversize instead of panicking. - Add
Extensions::get_or_insert()method. - Implement
From<Uri>foruri::Builder. - Fix
HeaderName::from_lowercasethat could allow NUL bytes in some cases.
New Contributors
- @tottoto made their first contribution in #645
- @julianbraha made their first contribution in #652
- @LukeMathWalker made their first contribution in #654
- @mattgathu made their first contribution in #660
- @LukasKalbertodt made their first contribution in #667
- @dswij made their first contribution in #673
Full Changelog: v1.0.0...v1.1.0
v0.2.12
What's Changed
- Add methods to allow trying to allocate in the
HeaderMap, returning an error if oversize instead of panicking. - Fix
HeaderName::from_lowercasethat could allow NUL bytes in some cases.
v1.0.0
What's Changed
- Implement
CloneforRequest,Response, andExtensions. This breaking change requires
that all extensions now implementClone. - Add a default-on
stdfeature. Disabling it currently is not supported. - Fix MIRI warnings in
HeaderMap::iter().
New Contributors
v0.2.11
What's Changed
- Fix MIRI warnings in
HeaderMap::iter().
v0.2.10
What's Changed
- Fix parsing of
Authorityto handle square brackets in incorrect order. - Fix
HeaderMap::with_capacity()to handle arithmetic overflow.
New Contributors
- @nickelc made their first contribution in #598
- @IsaacCloos made their first contribution in #609
- @f0rki made their first contribution in #613
- @discord9 made their first contribution in #616
- @mxsm made their first contribution in #630
- @xiaolou86 made their first contribution in #633
- @HeeillWang made their first contribution in #628