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

Function getDecodeSplit

deps/undici/src/lib/web/fetch/util.js:1419–1430  ·  view source on GitHub ↗

* @see https://fetch.spec.whatwg.org/#concept-header-list-get-decode-split * @param {string} name lowercase header name * @param {import('./headers').HeadersList} list

(name, list)

Source from the content-addressed store, hash-verified

1417 * @param {import('./headers').HeadersList} list
1418 */
1419function getDecodeSplit (name, list) {
1420 // 1. Let value be the result of getting name from list.
1421 const value = list.get(name, true)
1422
1423 // 2. If value is null, then return null.
1424 if (value === null) {
1425 return null
1426 }
1427
1428 // 3. Return the result of getting, decoding, and splitting value.
1429 return gettingDecodingSplitting(value)
1430}
1431
1432function hasAuthenticationEntry (request) {
1433 return false

Callers 2

extractMimeTypeFunction · 0.70
processResponseFunction · 0.50

Calls 2

gettingDecodingSplittingFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected