mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Move TypedHeader to axum-extra (#1850)
Co-authored-by: Michael Scofield <[email protected]> Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
co-authored by
Michael Scofield
Jonas Platte
parent
173f9f72b0
commit
877e3fe4de
@@ -21,6 +21,7 @@
|
||||
//! `protobuf` | Enables the `Protobuf` extractor and response | No
|
||||
//! `query` | Enables the `Query` extractor | No
|
||||
//! `typed-routing` | Enables the `TypedPath` routing utilities | No
|
||||
//! `typed-header` | Enables the `TypedHeader` extractor and response | No
|
||||
//!
|
||||
//! [`axum`]: https://crates.io/crates/axum
|
||||
|
||||
@@ -80,6 +81,17 @@ pub mod routing;
|
||||
#[cfg(feature = "json-lines")]
|
||||
pub mod json_lines;
|
||||
|
||||
#[cfg(feature = "typed-header")]
|
||||
pub mod typed_header;
|
||||
|
||||
#[cfg(feature = "typed-header")]
|
||||
#[doc(no_inline)]
|
||||
pub use headers;
|
||||
|
||||
#[cfg(feature = "typed-header")]
|
||||
#[doc(inline)]
|
||||
pub use typed_header::TypedHeader;
|
||||
|
||||
#[cfg(feature = "protobuf")]
|
||||
pub mod protobuf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user