Move the Host extractor to axum-extra (#2956)

This commit is contained in:
Jonas Platte
2024-10-14 22:45:37 +00:00
committed by GitHub
parent 24d24f4ccb
commit 0ddc63f77e
10 changed files with 38 additions and 29 deletions
+1 -1
View File
@@ -7,13 +7,13 @@
#![allow(unused_imports)]
use axum::{
extract::Host,
handler::HandlerWithoutStateExt,
http::{StatusCode, Uri},
response::Redirect,
routing::get,
BoxError, Router,
};
use axum_extra::extract::Host;
use axum_server::tls_rustls::RustlsConfig;
use std::{net::SocketAddr, path::PathBuf};
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};