actix_http/body/mod.rs
1//! Traits and structures to aid consuming and writing HTTP payloads.
2//!
3//! "Body" and "payload" are used somewhat interchangeably in this documentation.
4
5// Though the spec kinda reads like "payload" is the possibly-transfer-encoded part of the message
6// and the "body" is the intended possibly-decoded version of that.
7
8mod body_stream;
9mod boxed;
10mod either;
11mod message_body;
12mod none;
13mod size;
14mod sized_stream;
15mod utils;
16
17pub(crate) use self::message_body::MessageBodyMapErr;
18pub use self::{
19 body_stream::BodyStream,
20 boxed::BoxBody,
21 either::EitherBody,
22 message_body::MessageBody,
23 none::None,
24 size::BodySize,
25 sized_stream::SizedStream,
26 utils::{to_bytes, to_bytes_limited, BodyLimitExceeded},
27};