Skip to main content

OpenStream

Type Alias OpenStream 

Source
pub type OpenStream = (HttpResponse, Box<dyn ChunkSource>);
Expand description

A streaming response: the head, and the body still to arrive.

Named rather than spelled inline at HttpBackend::open_stream, because the two halves are one thing — the status has to be readable before the first body byte, so a backend cannot hand back one without the other.