mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
Add Html response type
This commit is contained in:
+1
-9
@@ -14,7 +14,7 @@ use std::{
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
use tower::{BoxError, Layer, Service};
|
||||
use tower::{BoxError, Service};
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct EmptyRouter(pub(crate) ());
|
||||
@@ -398,12 +398,4 @@ mod tests {
|
||||
std::str::from_utf8(&route.spec).unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
fn route(method: Method, uri: &'static str) -> RouteSpec {
|
||||
RouteSpec::new(method, uri)
|
||||
}
|
||||
|
||||
fn req(method: Method, uri: &str) -> Request<()> {
|
||||
Request::builder().uri(uri).method(method).body(()).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user