Skip to main content

Module sse

Module sse 

Source
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.
SseEventIterator
Iterator over SSE events in a text stream.

Enums§

SseParseError
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.