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

Function response_has_complete_body

packages/server/src/devtools.rs:595–600  ·  view source on GitHub ↗
(response: &[u8])

Source from the content-addressed store, hash-verified

593}
594
595fn response_has_complete_body(response: &[u8]) -> bool {
596 let Some((headers, body)) = split_http_response(response) else {
597 return false;
598 };
599 content_length(&headers).is_some_and(|length| body.len() >= length)
600}
601
602fn content_length(headers: &str) -> Option<usize> {
603 headers.lines().find_map(|line| {

Callers 2

fetch_devtools_jsonFunction · 0.85
fetch_metro_resourceFunction · 0.85

Calls 2

split_http_responseFunction · 0.85
content_lengthFunction · 0.85

Tested by

no test coverage detected