reqwest-sse

Crates.ioreqwest-sse
lib.rsreqwest-sse
version0.1.0
created_at2025-07-23 19:38:01.641981+00
updated_at2025-07-23 19:38:01.641981+00
descriptionLightweight SSE client over reqwest
homepagehttps://github.com/vvvinceocam/reqwest-sse
repositoryhttps://github.com/vvvinceocam/reqwest-sse
max_upload_size
id1765188
size80,647
Vincent Berset (vvvinceocam)

documentation

README

reqwest-sse

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.

Example

use reqwest_sse::EventSource;
use tokio_stream::StreamExt;

let events = reqwest::get("https://example.com/events")
    .await?
    .events()
    .await?
    .collect::<Vec<_>>();
Commit count: 0

cargo fmt