mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
Revert "feat: impl IntoResponseParts for Redirect (#3721)"
This reverts commit 4eed2f6c13.
This commit is contained in:
@@ -5,17 +5,6 @@ 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
|
||||
|
||||
- **added:** `ResponseParts::status` and `ResponseParts::status_mut` accessors,
|
||||
allowing `IntoResponseParts` implementations to set the response status ([#3721])
|
||||
|
||||
[#3721]: https://github.com/tokio-rs/axum/pull/3721
|
||||
|
||||
# 0.5.6
|
||||
|
||||
Improve error messages with `#[diagnostic::do_not_recommend]`.
|
||||
|
||||
# 0.5.5
|
||||
|
||||
Released without changes to fix docs.rs build.
|
||||
|
||||
@@ -107,18 +107,6 @@ pub struct ResponseParts {
|
||||
}
|
||||
|
||||
impl ResponseParts {
|
||||
/// Gets the response status code.
|
||||
#[must_use]
|
||||
pub fn status(&self) -> StatusCode {
|
||||
self.res.status()
|
||||
}
|
||||
|
||||
/// Gets a mutable reference to the response status code.
|
||||
#[must_use]
|
||||
pub fn status_mut(&mut self) -> &mut StatusCode {
|
||||
self.res.status_mut()
|
||||
}
|
||||
|
||||
/// Gets a reference to the response headers.
|
||||
#[must_use]
|
||||
pub fn headers(&self) -> &HeaderMap {
|
||||
|
||||
Reference in New Issue
Block a user