mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 13:00:39 +00:00
Actually run the routing tests 🤦
This commit is contained in:
parent
a47d7eca40
commit
0be0ea6763
@ -37,7 +37,7 @@ mod not_found;
|
|||||||
mod route;
|
mod route;
|
||||||
mod strip_prefix;
|
mod strip_prefix;
|
||||||
|
|
||||||
#[cfg(tests)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
use crate::error_handling::HandleErrorLayer;
|
use crate::error_handling::HandleErrorLayer;
|
||||||
use crate::extract::{Extension, MatchedPath};
|
|
||||||
use crate::test_helpers::*;
|
use crate::test_helpers::*;
|
||||||
use crate::BoxError;
|
use crate::BoxError;
|
||||||
use crate::{
|
use crate::{
|
||||||
@ -10,17 +9,13 @@ use crate::{
|
|||||||
Json, Router,
|
Json, Router,
|
||||||
};
|
};
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use http::{
|
use http::{header::HeaderMap, Method, Request, Response, StatusCode, Uri};
|
||||||
header::{HeaderMap, AUTHORIZATION},
|
|
||||||
Method, Request, Response, StatusCode, Uri,
|
|
||||||
};
|
|
||||||
use hyper::Body;
|
use hyper::Body;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
use std::future::Ready;
|
use std::future::Ready;
|
||||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
|
||||||
convert::Infallible,
|
convert::Infallible,
|
||||||
future::ready,
|
future::ready,
|
||||||
task::{Context, Poll},
|
task::{Context, Poll},
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
//! $ curl -v -x "127.0.0.1:3000" https://tokio.rs
|
//! $ curl -v -x "127.0.0.1:3000" https://tokio.rs
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Example is based on https://github.com/hyperium/hyper/blob/master/examples/http_proxy.rs
|
//! Example is based on <https://github.com/hyperium/hyper/blob/master/examples/http_proxy.rs>
|
||||||
|
|
||||||
use axum::{
|
use axum::{
|
||||||
body::{box_body, Body},
|
body::{box_body, Body},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user