Skip to main content

Module streaming

Module streaming 

Source
Expand description

Streaming HTTP responses (send_stream).

Use RequestBuilder::send_stream for large or chunked bodies. The buffered Response from RequestBuilder::send remains the default for JSON APIs.

With feature sse, StreamingResponse::sse_events parses text/event-stream bodies incrementally.

Structs§

StreamingResponse
HTTP response with a streaming body.

Functions§

body_stream_from_bytes
Creates a single-chunk body stream from bytes.

Type Aliases§

BodyStream
Byte stream yielding Result<Bytes> chunks from the transport.