//! Common constants used across the SSE parser.
use Str;
/// Newline byte
pub const LF: u8 = b'\n';
/// Carriage return byte
pub const CR: u8 = b'\r';
/// Byte Order Mark as char
const BOM_CHAR: char = '\u{FEFF}';
const BOM_LEN: usize = BOM_CHAR.len_utf8;
// bom = %xFEFF ; U+FEFF BYTE ORDER MARK
/// Byte representation of the BOM [`char`]
pub const BOM: & = &;
/// Empty instance of [`Str`], from an `&'static ""`
pub const EMPTY_STR: Str = from_static;
/// Default event type string (`"message"`)
pub const MESSAGE_STR: Str = from_static;