Skip to main content

BoxBody

Type Alias BoxBody 

Source
pub type BoxBody = UnsyncBoxBody<Bytes, BoxBodyError>;
Expand description

The response body type used by typeway handlers.

This is a type-erased body that can wrap buffered data (Full<Bytes>), streaming data, or an empty body. It implements http_body::Body.

Uses UnsyncBoxBody internally, which only requires Send (not Sync), enabling streaming bodies from channels and other async sources.

Aliased Typeยง

pub struct BoxBody { /* private fields */ }