reqwest-eventsource
Provides a simple wrapper for [reqwest
] to provide an Event Source implementation.
You can learn more about Server Sent Events (SSE) take a look at the MDN
docs
This crate uses [eventsource_stream
] to wrap the underlying Bytes stream, and retries failed
requests.
Example
For more examples with delaying and error handling, take a look at the examples/
let client = new;
let mut stream = client
.get
.eventsource?;
while let Some = stream.next.await
License: MIT OR Apache-2.0