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 infallible_stream;
12mod message_body;
13mod none;
14mod size;
15mod sized_stream;
16mod utils;
17
18pub(crate) use self::message_body::MessageBodyMapErr;
19pub use self::{
20 body_stream::BodyStream,
21 boxed::BoxBody,
22 either::EitherBody,
23 infallible_stream::InfallibleStream,
24 message_body::MessageBody,
25 none::None,
26 size::BodySize,
27 sized_stream::SizedStream,
28 utils::{to_bytes, to_bytes_limited, BodyLimitExceeded},
29};