Skip to content

crux_http v0.19.0

Choose a tag to compare

@StuartHarris StuartHarris released this 06 Jul 12:54
· 42 commits to master since this release
dd41243

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_http to native http types
guide for a step-by-step walkthrough.

💥 Breaking changes

  • crux_http::http re-exports the real http crate, not http-types. Method
    and StatusCode are now http's (use Method::GET, StatusCode::UNAUTHORIZED, …).
  • http-compat feature removed — native From/TryFrom conversions between
    crux_http types and http::Request<Body> / http::Response<Body> are now provided
    unconditionally.
  • New crux_http::Body type replaces the async http_types::Body; body-reading
    methods on RawResponse are now synchronous (drop the .await).
  • ResponseAsync renamed to RawResponse.
  • insert_header / append_header take http::HeaderValue and return the evicted
    value / a bool, mirroring http::HeaderMap.
  • Config::add_header name param is now impl IntoHeaderName; set_content_type
    takes &mime::Mime; Request::set_header is deprecated in favour of insert_header.
  • Opt-in http-types feature provides bridging conversions to/from the legacy
    http_types types while you migrate.

Notes

  • Not a breaking change for crux_core, crux_kv, crux_time, or crux_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

New Contributors

Full Changelog: crux_core-v0.19.0...crux_http-v0.19.0