cloudflare / cloudflare/workers-rs
[Feature] Support for EventSource
Open
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Description
The Worker platform already supports [EventSource ](https://developers.cloudflare.com/workers/runtime-apis/eventsource/) but it's not exposed in the Rust API.
Most LLM APIs provide a way to stream responses using SSE, so having support for this would make it simpler to manage those streams in Rust. Currently we need to implement our own stream handling to go from bytes to SSE events.
Contributor guide
Assessment
This issue has not been assessed yet.