stream library

Classes

DartoSSEWriter
Writer for Server-Sent Events via streamSSE.
DartoStreamWriter
Writer for raw binary streaming via stream.
DartoTextStreamWriter
Writer for plain-text streaming via streamText.
SseEvent
Payload for a single Server-Sent Event.

Functions

stream(Context c, Future<void> callback(DartoStreamWriter writer), {Future<void> onError(Object error, DartoStreamWriter writer)?}) Future<Response>
Streams raw binary data to the client.
streamSSE(Context c, Future<void> callback(DartoSSEWriter writer), {Future<void> onError(Object error, DartoSSEWriter writer)?}) Future<Response>
Streams Server-Sent Events (SSE) to the client.
streamText(Context c, Future<void> callback(DartoTextStreamWriter writer), {Future<void> onError(Object error, DartoTextStreamWriter writer)?}) Future<Response>
Streams plain text to the client chunk by chunk.