mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
12 lines
575 B
Text
12 lines
575 B
Text
event_stream_parser is a lightweight, fully spec-compliant parser for the event
|
|
stream format.
|
|
|
|
It only deals with the parsing of events and not any of the client/transport
|
|
aspects. This is not a Server-sent Events (SSE) client.
|
|
|
|
Under the hood, it's a stateful parser that receives chunks (that are received
|
|
from an HTTP client, for example) and emits events as it parses them. But it
|
|
remembers the last event id and reconnection time and keeps emitting them as
|
|
long as they are not overwritten by new ones.
|
|
|
|
BOM stripping is left as a responsibility of the chunk provider.
|