server_sent_events/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(feature = "alloc")]
4extern crate alloc;
5
6pub const CONTENT_TYPE_VALUE: &str = "text/event-stream";
7pub const LAST_EVENT_ID_HEADER_KEY: &str = "Last-Event-ID";
8
9//
10#[cfg(feature = "alloc")]
11pub mod event;
12
13#[cfg(feature = "alloc")]
14pub use event::Event;
15
16//
17#[cfg(feature = "stream")]
18pub mod stream;
19
20//
21pub mod utils;