Skip to main content

Module frame

Module frame 

Source
Expand description

I/O-free coroutine decoding a W3C Server-Sent Events stream. Line-oriented and infallible: the parser never terminates and the outer driver stops when the body stream closes.

Structs§

SseFrame
One dispatched Server-Sent Event. event is None when the event: field was absent; data has the trailing newline stripped.
SseFrameParser
I/O-free Server-Sent Events frame parser.

Enums§

SseFrameParserYield
Per-step yield emitted by SseFrameParser.