Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ getHeaders
Method
getHeaders
lib/internal/http2/compat.js:605–608 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
603
}
604
605
getHeaders() {
606
const
headers = { __proto__: null };
607
return
ObjectAssign(headers, this[kHeaders]);
608
}
609
610
hasHeader(name) {
611
validateString(name,
'name'
);
Callers
7
_http_client.js
File · 0.80
_http_server.js
File · 0.80
onClientRequestCreated
Function · 0.80
test-http-mutable-headers.js
File · 0.80
test-http-multiple-headers.js
File · 0.80
test-http-set-header-chain.js
File · 0.80
test-http2-compat-serverresponse-headers.js
File · 0.80
Calls
1
ObjectAssign
Function · 0.85
Tested by
no test coverage detected