MCPcopy
hub / github.com/di-sukharev/opencommit / buildHeaders

Function buildHeaders

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

Source from the content-addressed store, hash-verified

58019 await this[kAgent].close();
58020 await this[kClient].close();
58021 }
58022 async [kDestroy]() {
58023 await this[kAgent].destroy();
58024 await this[kClient].destroy();
58025 }
58026 };
58027 function buildHeaders(headers) {
58028 if (Array.isArray(headers)) {
58029 const headersPair = {};
58030 for (let i3 = 0; i3 < headers.length; i3 += 2) {
58031 headersPair[headers[i3]] = headers[i3 + 1];
58032 }
58033 return headersPair;

Callers 1

dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…