MCPcopy Index your code
hub / github.com/nodejs/node / parseUniqueHeadersOption

Function parseUniqueHeadersOption

lib/_http_outgoing.js:660–672  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

658}));
659
660function parseUniqueHeadersOption(headers) {
661 if (!ArrayIsArray(headers)) {
662 return null;
663 }
664
665 const unique = new SafeSet();
666 const l = headers.length;
667 for (let i = 0; i < l; i++) {
668 unique.add(headers[i].toLowerCase());
669 }
670
671 return unique;
672}
673
674OutgoingMessage.prototype.setHeader = function setHeader(name, value) {
675 if (this._header) {

Callers 2

ClientRequestFunction · 0.85
ServerFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…