sse-core 0.2.0

A high-performance, zero-I/O, no_std compatible state-machine parser for Server-Sent Events (SSE).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]
#![warn(rustdoc::missing_crate_level_docs)]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

pub use decode::{MessageEvent, PayloadTooLargeError, SseDecoder, SseEvent};
pub use retry::SseRetryConfig;
#[cfg(feature = "stream")]
pub use stream::{SseStream, SseStreamError, SseStreamResult};

mod decode;
mod retry;
#[cfg(feature = "stream")]
mod stream;