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

Function response_is_chunked

packages/server/src/main/http.rs:146–153  ·  view source on GitHub ↗
(headers: &[(String, String)])

Source from the content-addressed store, hash-verified

144}
145
146fn response_is_chunked(headers: &[(String, String)]) -> bool {
147 headers.iter().any(|(name, value)| {
148 name == "transfer-encoding"
149 && value
150 .split(',')
151 .any(|part| part.trim().eq_ignore_ascii_case("chunked"))
152 })
153}
154
155fn decode_chunked_body(mut body: &[u8]) -> anyhow::Result<Vec<u8>> {
156 let mut decoded = Vec::new();

Callers 1

http_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected