Expand description
Lightweight Server-Sent Events (SSE) protocol parser.
Parses an SSE byte stream (from reqwest::Response::chunk()) into
typed RawSseEvent values. Follows the SSE specification:
fields are separated by \n, events are delimited by \n\n.
Structs§
- RawSse
Event - A single parsed SSE event.
Enums§
- SseError
- Errors that can occur while parsing an SSE stream.
Functions§
- parse_
sse_ stream - Parse a
reqweststreaming response into a stream ofRawSseEvents.