mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Re-export more body utilities (#162)
Useful when implementing `IntoResponse`
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user