Skip to content

Commit

Permalink
Host extractor was moved tokio-rs/axum#2956
Browse files Browse the repository at this point in the history
  • Loading branch information
hayas1 committed Jan 12, 2025
1 parent 8d4017e commit 7f8f345
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dev/server/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[dependencies]
axum = { version = "0.8.1", features = ["tokio", "original-uri"] }
axum-extra = "0.10.0"
chrono = { version = "0.4.39", features = ["serde"] }
http-serde = "2.1.1"
num = { version = "0.4.3", features = ["serde"] }
Expand Down
3 changes: 2 additions & 1 deletion dev/server/http/src/route/information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ use std::collections::HashMap;

use axum::{
body::{to_bytes, Body, HttpBody},
extract::{Host, OriginalUri, Request},
extract::{OriginalUri, Request},
http::{request::Parts, uri::Scheme, HeaderMap, Method, Uri, Version},
response::Result,
routing::any,
Json, Router,
};
use axum_extra::extract::Host;
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use serde_json::{Map, Value};
Expand Down

0 comments on commit 7f8f345

Please sign in to comment.