///|
fn main {
  let input = "{\"log\":{\"version\":\"1.2\",\"creator\":{\"name\":\"example\",\"version\":\"1\"},\"entries\":[{\"startedDateTime\":\"2026-08-15T10:00:00Z\",\"time\":8,\"request\":{\"method\":\"GET\",\"url\":\"https://example.com/\",\"httpVersion\":\"HTTP/2\",\"cookies\":[],\"headers\":[],\"queryString\":[],\"headersSize\":20,\"bodySize\":0},\"response\":{\"status\":200,\"statusText\":\"OK\",\"httpVersion\":\"HTTP/2\",\"cookies\":[],\"headers\":[],\"content\":{\"size\":5,\"mimeType\":\"text/plain\"},\"redirectURL\":\"\",\"headersSize\":20,\"bodySize\":5},\"cache\":{},\"timings\":{\"send\":1,\"wait\":5,\"receive\":2}}]}}"
  match @har.parse_har(input) {
    Err(error) => println(error.format())
    Ok(document) =>
      println(@har.render_statistics_text(@har.analyze_har(document)))
  }
}