Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
function
isHostHeader (key) {
15
return
typeof key ===
'string'
&& key.toLowerCase() ===
'host'
16
}
17
18
function
normalizeHeaders (headers) {
19
if
(headers == null) {
Callers
1
hasHostHeader
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected