MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getDecodedResponseStream

Function getDecodedResponseStream

out/cli.cjs:76879–76891  ·  view source on GitHub ↗
(stream4, headers)

Source from the content-addressed store, hash-verified

76877 headers.set(header, value[0]);
76878 }
76879 } else if (value) {
76880 headers.set(header, value);
76881 }
76882 }
76883 return headers;
76884}
76885function getDecodedResponseStream(stream4, headers) {
76886 const contentEncoding = headers.get("Content-Encoding");
76887 if (contentEncoding === "gzip") {
76888 const unzip = zlib2.createGunzip();
76889 stream4.pipe(unzip);
76890 return unzip;
76891 } else if (contentEncoding === "deflate") {
76892 const inflate = zlib2.createInflate();
76893 stream4.pipe(inflate);
76894 return inflate;

Callers 1

sendRequestMethod · 0.85

Calls 2

pipeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…