Re-export more body utilities (#162)

Useful when implementing `IntoResponse`
This commit is contained in:
David Pedersen
2021-08-08 16:41:17 +02:00
committed by GitHub
parent b4bdddf9d2
commit b75b7b0184
3 changed files with 16 additions and 10 deletions
+5 -2
View File
@@ -1,14 +1,17 @@
//! HTTP body utilities.
use crate::Error;
use bytes::Bytes;
use tower::BoxError;
#[doc(no_inline)]
pub use http_body::Body as HttpBody;
pub use http_body::{Body as HttpBody, Empty, Full};
#[doc(no_inline)]
pub use hyper::body::Body;
#[doc(no_inline)]
pub use bytes::Bytes;
/// A boxed [`Body`] trait object.
///
/// This is used in axum as the response body type for applications. Its