crux_http v0.19.0
·
42 commits
to master
since this release
crux_http now builds on the standard http crate (v1.4)
instead of the http-types fork. This is a breaking change.
📖 See the Migrating
crux_httpto nativehttptypes
guide for a step-by-step walkthrough.
💥 Breaking changes
crux_http::httpre-exports the realhttpcrate, nothttp-types.Method
andStatusCodeare nowhttp's (useMethod::GET,StatusCode::UNAUTHORIZED, …).http-compatfeature removed — nativeFrom/TryFromconversions between
crux_httptypes andhttp::Request<Body>/http::Response<Body>are now provided
unconditionally.- New
crux_http::Bodytype replaces the asynchttp_types::Body; body-reading
methods onRawResponseare now synchronous (drop the.await). ResponseAsyncrenamed toRawResponse.insert_header/append_headertakehttp::HeaderValueand return the evicted
value / a bool, mirroringhttp::HeaderMap.Config::add_headername param is nowimpl IntoHeaderName;set_content_type
takes&mime::Mime;Request::set_headeris deprecated in favour ofinsert_header.- Opt-in
http-typesfeature provides bridging conversions to/from the legacy
http_typestypes while you migrate.
Notes
- Not a breaking change for
crux_core,crux_kv,crux_time, orcrux_macros— none
of them are affected, and no new versions of those crates are required.
See the full changelog
for the complete list of features, bug fixes, and migration details.
What's Changed
- chore: crux versions in docs by @StuartHarris in #545
- Remove
crux_platformby @StuartHarris in #542 - RFC: Decouple
crux_httpfromhttp-typesby @StuartHarris in #543 - Clarify building instructions for Android by @ganyuss in #549
- chore(release): crux_http 0.19.0 by @StuartHarris in #550
New Contributors
Full Changelog: crux_core-v0.19.0...crux_http-v0.19.0