MCPcopy
hub / github.com/lukeed/polka / setHeader

Method setHeader

tests/util/mock.js:28–30  ·  view source on GitHub ↗
(key, val)

Source from the content-addressed store, hash-verified

26 return this.headers[key.toLowerCase()];
27 }
28 setHeader(key, val) {
29 this.headers[key.toLowerCase()] = val;
30 }
31 hasHeader(key) {
32 return this.headers[key.toLowerCase()] !== void 0;
33 }

Callers 7

index.jsFile · 0.80
polka.jsFile · 0.80
send-type.jsFile · 0.80
server.jsFile · 0.80
util.jsFile · 0.80
getFunction · 0.80
getFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected