Skip to main content

split_raw_body

Function split_raw_body 

Source
fn split_raw_body<'a>(body: &'a str, linebreaker: Option<&str>) -> Vec<&'a str>
Expand description

Splits a raw body into events. Without ?linebreaker=, the whole body is ONE event. With ?linebreaker=<literal> (percent-encoded, e.g. %0A for \n), the body is split on that literal delimiter; whitespace-only segments are dropped, segment content is kept verbatim.