2021-11-30 14:46:13 +01:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
|
|
|
# Unreleased
|
|
|
|
|
2022-01-11 20:39:39 +01:00
|
|
|
- **breaking:** Using `HeaderMap` as an extractor will no longer remove the headers and thus
|
|
|
|
they'll still be accessible to other extractors, such as `axum::extract::Json`. Instead
|
|
|
|
`HeaderMap` will clone the headers. You should prefer to use `TypedHeader` to extract only the
|
|
|
|
headers you need ([#698])
|
|
|
|
|
|
|
|
This includes these breaking changes:
|
|
|
|
- `RequestParts::take_headers` has been removed.
|
|
|
|
- `RequestParts::headers` returns `&HeaderMap`.
|
|
|
|
- `RequestParts::headers_mut` returns `&mut HeaderMap`.
|
|
|
|
- `HeadersAlreadyExtracted` has been removed.
|
|
|
|
- The `HeadersAlreadyExtracted` variant has been removed from these rejections:
|
|
|
|
- `RequestAlreadyExtracted`
|
|
|
|
- `RequestPartsAlreadyExtracted`
|
|
|
|
- `<HeaderMap as FromRequest<_>>::Error` has been changed to `std::convert::Infallible`.
|
|
|
|
|
|
|
|
[#698]: https://github.com/tokio-rs/axum/pull/698
|
2021-12-02 20:02:38 +01:00
|
|
|
|
2021-12-06 10:30:09 +01:00
|
|
|
# 0.1.1 (06. December, 2021)
|
|
|
|
|
2021-12-06 13:03:13 +01:00
|
|
|
- **added:** `axum_core::response::Response` now exists as a shorthand for writing `Response<BoxBody>` ([#590])
|
|
|
|
|
|
|
|
[#590]: https://github.com/tokio-rs/axum/pull/590
|
2021-12-06 10:30:09 +01:00
|
|
|
|
2021-12-02 20:02:38 +01:00
|
|
|
# 0.1.0 (02. December, 2021)
|
|
|
|
|
|
|
|
- Initial release.
|