Skip to main content

Module sse

Module sse 

Source

Structs§

ControlPayload
JSON payload for event: control SSE events.

Functions§

format_control_frame
Format an event: control SSE frame from a typed payload.
format_data_frame
Format an event: data SSE frame for a single stored message.
format_data_frames
Format event: data SSE frames for a batch of messages from a single read.
format_keepalive_frame
Format an SSE keep-alive comment frame.
is_binary_content_type
Determine if a content type requires base64 encoding in SSE mode.