Next breaking release of axum, axum-core, and axum-extra#644
Merged
davidpdrsn merged 9 commits intomainfrom Jan 23, 2022
Merged
Next breaking release of axum, axum-core, and axum-extra#644davidpdrsn merged 9 commits intomainfrom
davidpdrsn merged 9 commits intomainfrom
Conversation
f04cf94 to
a7de04f
Compare
Replaces `Field::content_type`'s return type with `&str`. This is a breaking change. Closes #637
* Make `TypedHeaderRejectionReason` `#[non_exhaustive]` Fixes #660 * add changelog pr link
* Fix inconsistent indentation in axum/Cargo.toml * Make MatchedPath and OriginalUri extractors and logic for them optional … they add some runtime cost to handling any request that goes through a Router, which only makes sense if they actually get used. Enable both features by default for convenience.
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
* Change `HeaderMap` extractor to clone the headers * fix docs * changelog * inline variable * also add changelog item to axum * don't list types from axum in axum-core's changelog * document that `HeaderMap::from_request` clones the headers * fix typo * a few more typos
* Remove `RequestParts::take_extensions` * fix out of date docs * Remove RequestAlreadyExtracted and replace it with BodyAlreadyExtracted * fix docs * fix test * Update axum-core/src/extract/mod.rs Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com> * Remove macro only used once Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
* Introduce IntoResponseHeaders trait * Implement IntoResponseHeaders for HeaderMap * Add impl IntoResponse for impl IntoResponseHeaders … and update IntoResponse impls that use HeaderMap to be generic instead. * Add impl IntoResponseHeaders for Headers … and remove IntoResponse impls that use it. * axum-debug: Fix grammar in docs * Explain confusing error message in docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This branch contains the changes we're planning to make in the next breaking release of axum. Note this is a draft since we don't want to merge it yet. Want to wait a bit longer before making another breaking release.
PRs merged (for writing the changelog):
RequestParts::try_into_request#639mimecrate with&str#642Output = ()onWebSocketStream::on_upgrade#646TypedHeaderRejectionReason#[non_exhaustive]#665sse::Eventbuild event as aBytesMut#647HeaderMapextractor to clone the headers #698RequestParts::take_extensions#699 (this changed axum-extra)Note to self: Don't squash merge this. Probably want to interactive rebase to make the git history look nice.