Clarify docs around body extractors

This commit is contained in:
David Pedersen
2021-07-23 00:27:08 +02:00
parent f25f7f90ff
commit d927c819d3
3 changed files with 105 additions and 48 deletions
+1 -1
View File
@@ -487,7 +487,7 @@
//! "/",
//! service::any(service_fn(|_: Request<Body>| async {
//! let res = Response::new(Body::from("Hi from `GET /`"));
//! Ok::<_, Infallible>(res)
//! Ok(res)
//! }))
//! ).route(
//! // GET `/static/Cargo.toml` goes to a service from tower-http