Skip to main content

HttpBodyRef

Type Alias HttpBodyRef 

Source
pub type HttpBodyRef = Arc<dyn HttpBody + Send + Sync>;
Expand description

Shared handle to a response body.

Bounded exactly as HttpFuture is: a native transfer runs on a thread of its own and its body crosses to whoever awaits it, while a browser’s body is a ReadableStream reader that belongs to the one thread a page has and cannot claim otherwise.

Aliased Type§

pub struct HttpBodyRef { /* private fields */ }