From fced10a5360e792cdaccced60f9513297dceae75 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 30 Aug 2023 14:32:35 -0400 Subject: [PATCH] docs(body): reference http-body-util for more implementations --- src/body/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/body/mod.rs b/src/body/mod.rs index 60c9914596..54f85c173c 100644 --- a/src/body/mod.rs +++ b/src/body/mod.rs @@ -10,9 +10,14 @@ //! - **The [`Body`](Body) trait** describes all possible bodies. //! hyper allows any body type that implements `Body`, allowing //! applications to have fine-grained control over their streaming. -//! - **The [`Incoming`](Incoming) concrete type**, which is an implementation of -//! `Body`, and returned by hyper as a "receive stream" (so, for server +//! - **The [`Incoming`](Incoming) concrete type**, which is an implementation +//! of `Body`, and returned by hyper as a "receive stream" (so, for server //! requests and client responses). +//! +//! There are additional implementations available in [`http-body-util`][], +//! such as a `Full` or `Empty` body. +//! +//! [`http-body-util`]: https://docs.rs/http-body-util pub use bytes::{Buf, Bytes}; pub use http_body::Body;