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

Function buildHeadersFromArray

out/cli.cjs:57185–57192  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

57183 }
57184 return void 0;
57185 } else if (typeof headers.get === "function") {
57186 return headers.get(key);
57187 } else {
57188 return lowerCaseEntries(headers)[key.toLocaleLowerCase()];
57189 }
57190 }
57191 function buildHeadersFromArray(headers) {
57192 const clone = headers.slice();
57193 const entries = [];
57194 for (let index = 0; index < clone.length; index += 2) {
57195 entries.push([clone[index], clone[index + 1]]);

Callers 2

matchHeadersFunction · 0.85
handleReplyFunction · 0.85

Calls 2

sliceMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…