Skip to main content

parse_har

Function parse_har 

Source
pub fn parse_har(text: &str, origin: Option<&str>) -> Result<Capture, String>
Expand description

Parses a HAR in memory and keeps only the chosen origin’s request cookies and headers. The HAR itself is never stored: it holds every other site the browser talked to. With several origins and no origin, the error lists them so the caller can ask.