MCPcopy
hub / github.com/axios/axios / normalizeHeaders

Function normalizeHeaders

tests/smoke/cjs/tests/headers.smoke.test.cjs:7–15  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

5const { expect } = require('chai');
6
7const normalizeHeaders = (headers) => {
8 const result = {};
9
10 Object.entries(headers || {}).forEach(([key, value]) => {
11 result[key.toLowerCase()] = value;
12 });
13
14 return result;
15};
16
17const createTransportCapture = () => {
18 let capturedOptions;

Callers 1

Calls 2

forEachMethod · 0.80
entriesMethod · 0.80

Tested by

no test coverage detected