Module decoder

Module decoder 

Source
Expand description

Stateful SSE byte-stream decoder.

SseStreamDecoder accumulates raw bytes from an HTTP response into a line buffer, drains complete data: lines, and delegates frame parsing to super::parser. Its explicit state makes it straightforward to unit- test without standing up an actual HTTP server or wrapping everything in an async_stream macro block.

Structsยง

SseStreamDecoder
Stateful decoder that turns a sequence of raw SSE byte chunks into a sequence of LlmStreamEvent values.