mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-04 22:14:44 +01:00
Clean up axum-extra'a new error-response feature (#3057)
This commit is contained in:
parent
84c3960639
commit
f6379558e6
4 changed files with 7 additions and 3 deletions
|
@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning].
|
||||||
- **fixed:** `Host` extractor includes port number when parsing authority ([#2242])
|
- **fixed:** `Host` extractor includes port number when parsing authority ([#2242])
|
||||||
- **added:** Add `RouterExt::typed_connect` ([#2961])
|
- **added:** Add `RouterExt::typed_connect` ([#2961])
|
||||||
- **added:** Add `json!` for easy construction of JSON responses ([#2962])
|
- **added:** Add `json!` for easy construction of JSON responses ([#2962])
|
||||||
|
- **added:** Add `InternalServerError` response for logging an internal error
|
||||||
|
and returning HTTP 500 in a convenient way. ([#3010])
|
||||||
|
|
||||||
[#2242]: https://github.com/tokio-rs/axum/pull/2242
|
[#2242]: https://github.com/tokio-rs/axum/pull/2242
|
||||||
[#2961]: https://github.com/tokio-rs/axum/pull/2961
|
[#2961]: https://github.com/tokio-rs/axum/pull/2961
|
||||||
[#2962]: https://github.com/tokio-rs/axum/pull/2962
|
[#2962]: https://github.com/tokio-rs/axum/pull/2962
|
||||||
|
[#3010]: https://github.com/tokio-rs/axum/pull/3010
|
||||||
|
|
||||||
# 0.10.0
|
# 0.10.0
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ default = ["tracing", "multipart"]
|
||||||
|
|
||||||
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
|
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
|
||||||
attachment = ["dep:tracing"]
|
attachment = ["dep:tracing"]
|
||||||
error_response = ["dep:tracing", "tracing/std"]
|
error-response = ["dep:tracing", "tracing/std"]
|
||||||
cookie = ["dep:cookie"]
|
cookie = ["dep:cookie"]
|
||||||
cookie-private = ["cookie", "cookie?/private"]
|
cookie-private = ["cookie", "cookie?/private"]
|
||||||
cookie-signed = ["cookie", "cookie?/signed"]
|
cookie-signed = ["cookie", "cookie?/signed"]
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
//! `cookie-signed` | Enables the [`SignedCookieJar`](crate::extract::SignedCookieJar) extractor | No
|
//! `cookie-signed` | Enables the [`SignedCookieJar`](crate::extract::SignedCookieJar) extractor | No
|
||||||
//! `cookie-key-expansion` | Enables the [`Key::derive_from`](crate::extract::cookie::Key::derive_from) method | No
|
//! `cookie-key-expansion` | Enables the [`Key::derive_from`](crate::extract::cookie::Key::derive_from) method | No
|
||||||
//! `erased-json` | Enables the [`ErasedJson`](crate::response::ErasedJson) response | No
|
//! `erased-json` | Enables the [`ErasedJson`](crate::response::ErasedJson) response | No
|
||||||
|
//! `error-response` | Enables the [`InternalServerError`](crate::response::InternalServerError) response | No
|
||||||
//! `form` | Enables the [`Form`](crate::extract::Form) extractor | No
|
//! `form` | Enables the [`Form`](crate::extract::Form) extractor | No
|
||||||
//! `json-deserializer` | Enables the [`JsonDeserializer`](crate::extract::JsonDeserializer) extractor | No
|
//! `json-deserializer` | Enables the [`JsonDeserializer`](crate::extract::JsonDeserializer) extractor | No
|
||||||
//! `json-lines` | Enables the [`JsonLines`](crate::extract::JsonLines) extractor and response | No
|
//! `json-lines` | Enables the [`JsonLines`](crate::extract::JsonLines) extractor and response | No
|
||||||
|
|
|
@ -9,10 +9,10 @@ mod attachment;
|
||||||
#[cfg(feature = "multipart")]
|
#[cfg(feature = "multipart")]
|
||||||
pub mod multiple;
|
pub mod multiple;
|
||||||
|
|
||||||
#[cfg(feature = "error_response")]
|
#[cfg(feature = "error-response")]
|
||||||
mod error_response;
|
mod error_response;
|
||||||
|
|
||||||
#[cfg(feature = "error_response")]
|
#[cfg(feature = "error-response")]
|
||||||
pub use error_response::InternalServerError;
|
pub use error_response::InternalServerError;
|
||||||
|
|
||||||
#[cfg(feature = "erased-json")]
|
#[cfg(feature = "erased-json")]
|
||||||
|
|
Loading…
Reference in a new issue