Skip to main content
Module sse
ag_ui
1.0.0
Module sse
Module Items
Structs
Enums
Functions
In ag_
ui::
encode
ag_ui
::
encode
Module
sse
Copy item path
Source
Expand description
Server-Sent Events framing.
Structs
§
SseFormatter
Encodes events as
text/event-stream
frames.
Enums
§
SseFrame
A data event or an SSE transport comment.
Functions
§
comment
Encodes an SSE comment, prefixing every line to prevent frame injection.
frame
Wraps an arbitrary payload in an SSE
data:
block.