mirror of
https://github.com/tokio-rs/axum.git
synced 2024-10-24 01:46:51 +02:00
Add missing changelog items (#845)
* Add missing changelog items * Update axum/CHANGELOG.md Co-authored-by: Jonas Platte <jplatte+git@posteo.de> Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
This commit is contained in:
parent
14960e9a11
commit
88974f4299
2 changed files with 8 additions and 1 deletions
|
@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
- **added:** Add `IntoResponseParts` trait ([#797])
|
- **added:** Add `IntoResponseParts` trait which allows defining custom response
|
||||||
|
types for adding headers or extensions to responses ([#797])
|
||||||
- **added:** Implement `IntoResponse` for `bytes::BytesMut` and `bytes::Chain<T, U>` ([#767])
|
- **added:** Implement `IntoResponse` for `bytes::BytesMut` and `bytes::Chain<T, U>` ([#767])
|
||||||
- **breaking:** Using `HeaderMap` as an extractor will no longer remove the headers and thus
|
- **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
|
they'll still be accessible to other extractors, such as `axum::extract::Json`. Instead
|
||||||
|
|
|
@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
extension on the response ([#797])
|
extension on the response ([#797])
|
||||||
- **added:** Implement `tower::Layer` for `Extension` ([#801])
|
- **added:** Implement `tower::Layer` for `Extension` ([#801])
|
||||||
- **added:** `extract::Host` for extracting the hostname of a request ([#827])
|
- **added:** `extract::Host` for extracting the hostname of a request ([#827])
|
||||||
|
- **added:** Add `IntoResponseParts` trait which allows defining custom response
|
||||||
|
types for adding headers or extensions to responses ([#797])
|
||||||
|
- **added:** `TypedHeader` implements the new `IntoResponseParts` trait so they
|
||||||
|
can be returned from handlers as parts of a response ([#797])
|
||||||
- **changed:** `Router::merge` now accepts `Into<Router>` ([#819])
|
- **changed:** `Router::merge` now accepts `Into<Router>` ([#819])
|
||||||
- **breaking:** `sse::Event` now accepts types implementing `AsRef<str>` instead of `Into<String>`
|
- **breaking:** `sse::Event` now accepts types implementing `AsRef<str>` instead of `Into<String>`
|
||||||
as field values.
|
as field values.
|
||||||
|
@ -65,6 +69,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
results in a route at `/foo/bar` instead of `/foo//bar` ([#824])
|
results in a route at `/foo/bar` instead of `/foo//bar` ([#824])
|
||||||
- **breaking:** Routes are now required to start with `/`. Previously routes such as `:foo` would
|
- **breaking:** Routes are now required to start with `/`. Previously routes such as `:foo` would
|
||||||
be accepted but most likely result in bugs ([#823])
|
be accepted but most likely result in bugs ([#823])
|
||||||
|
- **breaking:** `Headers` has been removed. Arrays of tuples directly implement
|
||||||
|
`IntoResponseParts` so `([("x-foo", "foo")], response)` now works ([#797])
|
||||||
- **fixed:** Set `Allow` header when responding with `405 Method Not Allowed` ([#733])
|
- **fixed:** Set `Allow` header when responding with `405 Method Not Allowed` ([#733])
|
||||||
- **fixed:** Correctly set the `Content-Length` header for response to `HEAD`
|
- **fixed:** Correctly set the `Content-Length` header for response to `HEAD`
|
||||||
requests ([#734])
|
requests ([#734])
|
||||||
|
|
Loading…
Reference in a new issue