(headers: &str)
| 600 | } |
| 601 | |
| 602 | fn content_length(headers: &str) -> Option<usize> { |
| 603 | headers.lines().find_map(|line| { |
| 604 | let (name, value) = line.split_once(':')?; |
| 605 | if !name.trim().eq_ignore_ascii_case("content-length") { |
| 606 | return None; |
| 607 | } |
| 608 | value.trim().parse::<usize>().ok() |
| 609 | }) |
| 610 | } |
| 611 | |
| 612 | fn metro_target_matches_simulator( |
| 613 | entry: &Value, |
no outgoing calls
no test coverage detected