eventsource-stream
A basic building block for building an Eventsource from a Stream of bytes array like objects. To learn more about Server Sent Events (SSE) take a look at the MDN docs
Example
let mut stream = new
.get
.send
.await?
.bytes_stream
.eventsource;
while let Some = stream.next.await
License: MIT OR Apache-2.0