Skip to main content

read_header_line

Function read_header_line 

Source
pub fn read_header_line(line: &str) -> HeaderRead
Expand description

Read the first non-empty line of a stream as a potential header.

Returns HeaderRead::NotAHeader when the line parses as JSON but has no wm_envelope key, or is not JSON at all (a bare v1 record).