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:
David Pedersen
2023-04-21 17:45:31 +02:00
co-authored by Michael Scofield Jonas Platte
parent 173f9f72b0
commit 877e3fe4de
48 changed files with 227 additions and 246 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ publish = false
[dependencies]
async-session = "3.0.0"
axum = { path = "../../axum", features = ["headers"] }
axum = { path = "../../axum" }
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
+2 -2
View File
@@ -7,8 +7,7 @@
use async_session::{MemoryStore, Session, SessionStore as _};
use axum::{
async_trait,
extract::{FromRef, FromRequestParts, TypedHeader},
headers::Cookie,
extract::{FromRef, FromRequestParts},
http::{
self,
header::{HeaderMap, HeaderValue},
@@ -19,6 +18,7 @@ use axum::{
routing::get,
RequestPartsExt, Router,
};
use axum_extra::{headers::Cookie, TypedHeader};
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};