cloudflare / cloudflare/workers-rs

[Feature] Support for EventSource

Open
#703 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.