Enum conjure_http::server::AsyncResponseBody
source · pub enum AsyncResponseBody<O> {
Empty,
Fixed(Bytes),
Streaming(Box<dyn AsyncWriteBody<O> + Send>),
}Expand description
The response body returned from an async endpoint.
Variants§
Empty
An empty body.
Fixed(Bytes)
A body buffered in memory.
Streaming(Box<dyn AsyncWriteBody<O> + Send>)
A streaming body.