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
|
|
|
|
2021-05-05 17:36:02 +00:00
|
|
|
pub(crate) use self::message_body::MessageBodyMapErr;
|
2023-07-17 01:38:12 +00:00
|
|
|
pub use self::{
|
|
|
|
body_stream::BodyStream,
|
|
|
|
boxed::BoxBody,
|
|
|
|
either::EitherBody,
|
|
|
|
message_body::MessageBody,
|
|
|
|
none::None,
|
|
|
|
size::BodySize,
|
|
|
|
sized_stream::SizedStream,
|
|
|
|
utils::{to_bytes, to_bytes_limited, BodyLimitExceeded},
|
|
|
|
};
|