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

Function isHostHeader

deps/undici/src/lib/interceptor/dns.js:14–16  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

12}
13
14function isHostHeader (key) {
15 return typeof key === 'string' && key.toLowerCase() === 'host'
16}
17
18function normalizeHeaders (headers) {
19 if (headers == null) {

Callers 1

hasHostHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected