Skip to main content

Module sse

Module sse 

Source
Expand description

§SSE Decoding

SSE utilities built on top of HttpStreamResponse.

§Author

Haixing Hu

Structs§

SseEvent
One Server-Sent Events dispatch after frame reassembly (data: lines joined with \n).

Enums§

DoneMarkerPolicy
Policy for stream completion marker matching.
SseChunk
Either a decoded JSON value from one SSE data payload or an explicit end marker.
SseJsonMode
How to handle JSON parse failures on SSE data: lines.

Type Aliases§

SseChunkStream
Pin-boxed stream of SseChunk or HttpError.
SseEventStream
Pin-boxed stream of parsed SseEvent or HttpError.