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ยง
- SseStream
Decoder - Stateful decoder that turns a sequence of raw SSE byte chunks into a
sequence of
LlmStreamEventvalues.