sseer

Crates.iosseer
lib.rssseer
version0.1.1
created_at2026-01-23 00:51:49.872319+00
updated_at2026-01-23 06:19:47.321412+00
descriptionVarious helpers for getting Event streams out of your SSE responses
homepage
repositoryhttps://github.com/SneedSeedFeed/sseer.git
max_upload_size
id2063098
size106,661
(SneedSeedFeed)

documentation

https://docs.rs/sseer

README

sseer (sse - er)

What?

A collection of utilities for getting Events out of your SSE streams

Why?

As a bit of a learning project, in making a 'real' rust crate. Also got to learn a bit about the async ecosystem and hopefully make some improvements over the original code reqwest-eventsource and eventsource-stream by Julian Popescu

How?

With reqwest:

let request = client.get("https://example.com/events");
let mut event_source = EventSource::new(request)?;
while let Some(result) = event_source.next().await { 
    // your code here :3
}

Make an EventSource stream over your RequestBuilder and it turns into a Stream. Or if you want to handle it yourself then hit up the event_stream module for a Stream that parses bytes into Events. Or use the parser module if you want to parse it yourself.

let mut event_stream = EventStream::new(stream)?;

No std?

Yes, without the reqwest feature it's all no_std.

Commit count: 0

cargo fmt