JsonStream

Type Alias JsonStream 

Source
pub type JsonStream<T> = Streaming<T, JsonEncoding>;
Expand description

A stream of JSON-encoded data.

§Chunking

Normally, it’s not possible to stream JSON over HTTP because browsers are free to re-chunk data as they see fit. However, this implementation manually frames each JSON as if it were an unmasked websocket message.

If you need to send a stream of JSON data without framing, consider using TextStream instead and manually handling JSON buffering.

Aliased Type§

pub struct JsonStream<T> { /* private fields */ }