mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Make Request<Body> an extractor
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@
|
||||
//! # let some_backpressure_sensitive_middleware =
|
||||
//! # tower::layer::util::Identity::new();
|
||||
//!
|
||||
//! async fn handler(request: Request<Body>) { /* ... */ }
|
||||
//! async fn handler() { /* ... */ }
|
||||
//!
|
||||
//! let app = route("/", get(handler));
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user