Add Html response type

This commit is contained in:
David Pedersen
2021-05-31 10:20:07 +02:00
parent 0b2f791bf4
commit 6822766165
5 changed files with 57 additions and 24 deletions
+1 -9
View File
@@ -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()
}
}