MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / content_length

Function content_length

packages/server/src/devtools.rs:602–610  ·  view source on GitHub ↗
(headers: &str)

Source from the content-addressed store, hash-verified

600}
601
602fn 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
612fn metro_target_matches_simulator(
613 entry: &Value,

Callers 3

fetch_devtools_jsonFunction · 0.85
decoded_http_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected