Skip to main content

ResponseBody

Type Alias ResponseBody 

Source
pub type ResponseBody = UnsyncBoxBody<Bytes, Box<dyn Error + Send + Sync>>;
Expand description

The transport’s HTTP response body: boxed so a response may be buffered bytes or a live stream piped from the upstream without buffering (ADR-014). Unsync, the server only needs Send. Structurally identical to osproxy-sink’s ByteBody, so a streamed upstream response flows through as-is, no copy.

Aliased Type§

pub struct ResponseBody { /* private fields */ }