mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Remove generic parameter from BodyStream (#234)
I think `BodyStream` is more useful without being generic over the request body. I'm also looking into adding a response body from a stream called `StreamBody` which will work pretty much opposite to this.
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@
|
||||
//! .route(
|
||||
//! "/body-stream",
|
||||
//! // same for `extract::BodyStream`
|
||||
//! get(|_: extract::BodyStream<MyBody<Body>>| async {}),
|
||||
//! get(|_: extract::BodyStream| async {}),
|
||||
//! )
|
||||
//! .route(
|
||||
//! // and `Request<_>`
|
||||
|
||||
Reference in New Issue
Block a user