Skip to main content

sse_field

Function sse_field 

Source
fn sse_field<'a>(line: &'a str, field: &str) -> Option<&'a str>
Expand description

The value of an SSE field, or None when the line is a different field. The space after the colon is optional in the SSE grammar, so a data:{...} line carries an item like any other.