MCPcopy Create free account
hub / github.com/nodejs/node / lowerCaseEntries

Function lowerCaseEntries

deps/undici/src/lib/mock/mock-utils.js:34–40  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

32}
33
34function lowerCaseEntries (headers) {
35 return Object.fromEntries(
36 Object.entries(headers).map(([headerName, headerValue]) => {
37 return [headerName.toLocaleLowerCase(), headerValue]
38 })
39 )
40}
41
42/**
43 * @param {import('../../index').Headers|string[]|Record<string, string>} headers

Callers 2

getHeaderByNameFunction · 0.85
matchHeadersFunction · 0.85

Calls 2

mapMethod · 0.65
entriesMethod · 0.45

Tested by

no test coverage detected