Problem
Streaming endpoints need to map raw SSE events to typed models with endpoint-specific conventions.
Proposed change
Generate a per-endpoint SSE adapter turning SseStream<ServerSentEvent> into Iterable<TModel>, with a configurable done-sentinel and error-envelope→exception mapping. Keep the sentinel/error conventions out of core (they're per-API). Decode each element lazily on consume via the Serde SPI.
Acceptance
Builds on the AutoCloseable SSE stream + ResponseHandler seam.
Dependencies
Priority: medium · Effort: medium
Problem
Streaming endpoints need to map raw SSE events to typed models with endpoint-specific conventions.
Proposed change
Generate a per-endpoint SSE adapter turning
SseStream<ServerSentEvent>intoIterable<TModel>, with a configurable done-sentinel and error-envelope→exception mapping. Keep the sentinel/error conventions out of core (they're per-API). Decode each element lazily on consume via theSerdeSPI.Acceptance
Builds on the AutoCloseable SSE stream + ResponseHandler seam.
Dependencies
Priority: medium · Effort: medium