Expand description
SSE (Server-Sent Events) parsing and serialization utilities.
This module provides utilities for parsing SSE format which is used in streaming responses.
Structs§
- SseEvent
- SSE event with optional event type and data.
- SseEvent
Iterator - Iterator over SSE events in a text stream.
Enums§
- SseParse
Error - SSE parse error.
Functions§
- collect_
frames - Collect body frames into a single Bytes buffer.
- parse_
sse - Parse SSE format text into events.
- serialize_
sse - Serialize a single SSE event to string format.