4.3 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
- None.
0.2.6 (18. June, 2022)
- change: axum-core's MSRV is now 1.56 (#1098)
0.2.5 (08. June, 2022)
- added: Automatically handle
http_body::LengthLimitErrorinFailedToBufferBodyand map such errors to413 Payload Too Large(#1048) - fixed: Use
impl IntoResponseless in docs (#1049)
0.2.4 (02. May, 2022)
- added: Implement
IntoResponseandIntoResponsePartsforhttp::Extensions(#975) - added: Implement
IntoResponsefor(http::response::Parts, impl IntoResponse)(#950) - added: Implement
IntoResponsefor(http::response::Response<()>, impl IntoResponse)(#950) - added: Implement
IntoResponse for (Parts | Request<()>, $(impl IntoResponseParts)+, impl IntoResponse)(#980)
0.2.3 (25. April, 2022)
- added: Add
response::ErrorResponseandresponse::ResultforIntoResponse-based error handling (#921)
0.2.2 (19. April, 2022)
- added: Add
AppendHeadersfor appending headers to a response rather than overriding them (#927)
0.2.1 (03. April, 2022)
- added: Add
RequestParts::extractwhich allows applying an extractor as a method call (#897)
0.2.0 (31. March, 2022)
-
added: Add
IntoResponsePartstrait which allows defining custom response types for adding headers or extensions to responses (#797) -
breaking: Using
HeaderMapas an extractor will no longer remove the headers and thus they'll still be accessible to other extractors, such asaxum::extract::Json. InsteadHeaderMapwill clone the headers. You should prefer to useTypedHeaderto extract only the headers you need (#698)This includes these breaking changes:
RequestParts::take_headershas been removed.RequestParts::headersreturns&HeaderMap.RequestParts::headers_mutreturns&mut HeaderMap.HeadersAlreadyExtractedhas been removed.- The
HeadersAlreadyExtractedvariant has been removed from these rejections:RequestAlreadyExtractedRequestPartsAlreadyExtracted
<HeaderMap as FromRequest<_>>::Rejectionhas been changed tostd::convert::Infallible.
-
breaking:
axum::http::Extensionsis no longer an extractor (ie it doesn't implementFromRequest). Theaxum::extract::Extensionextractor is not impacted by this and works the same. This change makes it harder to accidentally remove all extensions which would result in confusing errors elsewhere (#699) This includes these breaking changes:RequestParts::take_extensionshas been removed.RequestParts::extensionsreturns&Extensions.RequestParts::extensions_mutreturns&mut Extensions.RequestAlreadyExtractedhas been removed.<Request as FromRequest>::Rejectionis nowBodyAlreadyExtracted.<http::request::Parts as FromRequest>::Rejectionis nowInfallible.ExtensionsAlreadyExtractedhas been removed.
-
breaking:
RequestParts::body_mutnow returns&mut Option<B>so the body can be swapped (#869)
0.1.2 (22. February, 2022)
- added: Implement
IntoResponseforbytes::BytesMutandbytes::Chain<T, U>(#767)
0.1.1 (06. December, 2021)
- added:
axum_core::response::Responsenow exists as a shorthand for writingResponse<BoxBody>(#590)
0.1.0 (02. December, 2021)
- Initial release.