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
@@ -5,13 +5,13 @@
//! ```
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::{future::Future, net::SocketAddr, path::PathBuf, time::Duration};
use tokio::signal;