You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
epic: SSE — server-side encoding, tooling, and docs #240
sse is a 708-line, three-layer module (transport-agnostic parser, HTTP client, convenience functions) with deps = ["httpclient"]. It is client-only: consuming text/event-stream works, but producing SSE from httpserver still means hand-writing data: / event: / id: / retry: lines and the text/event-stream header.
Decision: keep sse separate from httpclient. The parser is transport-agnostic, reconnection and Last-Event-ID are protocol logic, and httpclient should stay a transport. The dependency direction (sse → httpclient) is already correct.
Workstreams
Server-side event encoding: encode_event, validation, tests, docs (see sub-issue)
Tooling and docs: make test-sse / make benchmark-sse, httpclient/httpserver cross-links (see sub-issue)
Both workstreams landed: #241 (encoder) in #243 and #242 (Makefile + docs cross-links) in #244. The module stays separate from httpclient, as decided here.
sse 0.4.0 adds encode_event() / encode_comment() with multi-line normalization and validation; 12 new tests include an encoder → EventSource round-trip.
make test-sse (67 tests) and make benchmark-sse (6 cases) exist and are in the aggregates.
EN/ZH docs cover both sides, cross-linked from httpclient and httpserver; module index regenerated and make docs-index-check passes on master.
Activity
Oaklight commentedon Oct 23, 2026
Both workstreams landed: #241 (encoder) in #243 and #242 (Makefile + docs cross-links) in #244. The module stays separate from httpclient, as decided here.
sse0.4.0 addsencode_event()/encode_comment()with multi-line normalization and validation; 12 new tests include an encoder →EventSourceround-trip.make test-sse(67 tests) andmake benchmark-sse(6 cases) exist and are in the aggregates.make docs-index-checkpasses on master.