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:
David Pedersen
2021-08-22 11:33:38 +02:00
committed by GitHub
parent add3dc36f9
commit 80a8355eff
4 changed files with 35 additions and 14 deletions
+1 -1
View File
@@ -259,7 +259,7 @@
//! .route(
//! "/body-stream",
//! // same for `extract::BodyStream`
//! get(|_: extract::BodyStream<MyBody<Body>>| async {}),
//! get(|_: extract::BodyStream| async {}),
//! )
//! .route(
//! // and `Request<_>`