Expand description
Server-Sent Events (SSE) frame parser.
Implements a state machine that processes raw bytes and emits SseFrames.
The parser handles:
- Fragmented TCP delivery (bytes arrive in arbitrary-sized chunks).
data:lines concatenated with\nwhen a single event spans multipledata:lines.- Keep-alive comment lines (
: keep-alive), silently ignored. event:,id:, andretry:fields.- Double-newline event dispatch (
\n\nterminates each frame). - Configurable maximum event size to prevent unbounded memory growth.
Structs§
Enums§
- SseParse
Error - Errors that can occur during SSE parsing.