pub type ByteBody = UnsyncBoxBody<Bytes, BodyError>;Expand description
A boxed byte-stream body, used both for the request sent to an upstream
cluster and as the carrier for a downstream body streamed through the proxy
(a verbatim forward, or a _bulk batch the engine frames). Boxed (unsync, the
pooled client needs only Send, not Sync) so one type covers buffered bytes,
a stream, or a head + stream-tail without changing the pooled client’s type,
and so a downstream hyper::body::Incoming (which is Send but not Sync) can
be piped straight through (ADR-014).
Aliased Type§
pub struct ByteBody { /* private fields */ }