Documentation
¶
Overview ¶
Package sse contains the small, transport-only portion of Server-Sent Event parsing shared by HTTP streaming model adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read calls onData once for each complete SSE event containing at least one data field. Multiple data fields are joined with a newline as required by the SSE format. Event names, IDs, retry hints, and comments are intentionally ignored because model APIs communicate their payload entirely through data.
maxEventBytes bounds a single scanned line and protects adapters from an unbounded response. A non-positive value selects a 16 MiB default.
Types ¶
This section is empty.