2021-02-15 12:20:43 +00:00
|
|
|
//! Traits and structures to aid consuming and writing HTTP payloads.
|
2022-01-23 03:57:08 +00:00
|
|
|
//!
|
|
|
|
//! "Body" and "payload" are used somewhat interchangeably in this documentation.
|
|
|
|
|
|
|
|
// Though the spec kinda reads like "payload" is the possibly-transfer-encoded part of the message
|
|
|
|
// and the "body" is the intended possibly-decoded version of that.
|
2021-02-15 12:20:43 +00:00
|
|
|
|
|
|
|
mod body_stream;
|
2021-12-04 19:40:47 +00:00
|
|
|
mod boxed;
|
|
|
|
mod either;
|
2021-02-15 12:20:43 +00:00
|
|
|
mod message_body;
|
2021-12-04 19:40:47 +00:00
|
|
|
mod none;
|
2021-02-15 12:20:43 +00:00
|
|
|
mod size;
|
|
|
|
mod sized_stream;
|
2021-12-04 19:40:47 +00:00
|
|
|
mod utils;
|
2021-02-15 12:20:43 +00:00
|
|
|
|
|
|
|
pub use self::body_stream::BodyStream;
|
2021-12-04 19:40:47 +00:00
|
|
|
pub use self::boxed::BoxBody;
|
|
|
|
pub use self::either::EitherBody;
|
2021-02-15 12:20:43 +00:00
|
|
|
pub use self::message_body::MessageBody;
|
2021-05-05 17:36:02 +00:00
|
|
|
pub(crate) use self::message_body::MessageBodyMapErr;
|
2021-12-04 19:40:47 +00:00
|
|
|
pub use self::none::None;
|
2021-02-15 12:20:43 +00:00
|
|
|
pub use self::size::BodySize;
|
|
|
|
pub use self::sized_stream::SizedStream;
|
2023-03-13 13:31:48 +00:00
|
|
|
pub use self::utils::{to_bytes, to_bytes_limited, BodyLimitExceeded};
|