MCPcopy Create free account
hub / github.com/nock/nock / headersFieldsArrayToLowerCase

Function headersFieldsArrayToLowerCase

lib/common.js:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143const headersFieldsArrayToLowerCase = headers => [
144 ...new Set(headers.map(fieldName => fieldName.toLowerCase())),
145]
146
147/**
148 * Converts the various accepted formats of headers into a flat array representing "raw headers".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected