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

Method constructor

deps/undici/undici.js:11801–11812  ·  view source on GitHub ↗

* @param {HeadersInit|Symbol} [init] * @returns

(init = void 0)

Source from the content-addressed store, hash-verified

11799 * @returns
11800 */
11801 constructor(init = void 0) {
11802 webidl.util.markAsUncloneable(this);
11803 if (init === kConstruct) {
11804 return;
11805 }
11806 this.#headersList = new HeadersList();
11807 this.#guard = "none";
11808 if (init !== void 0) {
11809 init = webidl.converters.HeadersInit(init, "Headers constructor", "init");
11810 fill(this, init);
11811 }
11812 }
11813 // https://fetch.spec.whatwg.org/#dom-headers-append
11814 append(name, value) {
11815 webidl.brandCheck(this, _Headers);

Callers

nothing calls this directly

Calls 2

markAsUncloneableMethod · 0.80
fillFunction · 0.70

Tested by

no test coverage detected