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

Method append

deps/undici/src/lib/web/fetch/headers.js:460–470  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

458
459 // https://fetch.spec.whatwg.org/#dom-headers-append
460 append (name, value) {
461 webidl.brandCheck(this, Headers)
462
463 webidl.argumentLengthCheck(arguments, 2, 'Headers.append')
464
465 const prefix = 'Headers.append'
466 name = webidl.converters.ByteString(name, prefix, 'name')
467 value = webidl.converters.ByteString(value, prefix, 'value')
468
469 return appendHeader(this, name, value)
470 }
471
472 // https://fetch.spec.whatwg.org/#dom-headers-delete
473 delete (name) {

Callers 10

appendHeaderFunction · 0.45
fetchingFunction · 0.45
httpNetworkOrCacheFetchFunction · 0.45
constructorMethod · 0.45
redirectMethod · 0.45
initializeResponseFunction · 0.45
setCookieFunction · 0.45

Calls 4

brandCheckMethod · 0.80
argumentLengthCheckMethod · 0.80
ByteStringMethod · 0.80
appendHeaderFunction · 0.70

Tested by

no test coverage detected