| Crates.io | reqwest-sse |
| lib.rs | reqwest-sse |
| version | 0.1.0 |
| created_at | 2025-07-23 19:38:01.641981+00 |
| updated_at | 2025-07-23 19:38:01.641981+00 |
| description | Lightweight SSE client over reqwest |
| homepage | https://github.com/vvvinceocam/reqwest-sse |
| repository | https://github.com/vvvinceocam/reqwest-sse |
| max_upload_size | |
| id | 1765188 |
| size | 80,647 |
reqwest-sse is a lightweight Rust library that extends
reqwest by adding native support for handling
Server-Sent Events (SSE)
. It introduces the EventSource trait, which enhances reqwest's Response
type with an ergonomic .events() method. This method transforms the
response body into an asynchronous stream of SSE events, enabling seamless
integration of real-time event handling in applications using the familiar
reqwest HTTP client.
:warning: This library is experimental and shouldn't be used in production.
use reqwest_sse::EventSource;
use tokio_stream::StreamExt;
let events = reqwest::get("https://example.com/events")
.await?
.events()
.await?
.collect::<Vec<_>>();