Generic request body (#22)

Fixes #21
This commit is contained in:
David Pedersen
2021-06-19 12:50:33 +02:00
committed by GitHub
parent 6a16cd40ca
commit 356f1c8424
20 changed files with 692 additions and 401 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ impl BoxBody {
pub fn new<B>(body: B) -> Self
where
B: http_body::Body<Data = Bytes> + Send + Sync + 'static,
B::Error: Into<BoxError> + Send + Sync + 'static,
B::Error: Into<BoxError>,
{
Self {
inner: Box::pin(body.map_err(|error| BoxStdError(error.into()))),