MCPcopy Create free account
hub / github.com/nodejs/undici / appendConnectionHeaderTokens

Function appendConnectionHeaderTokens

lib/handler/cache-handler.js:50–59  ·  view source on GitHub ↗
(headersToRemove, connectionHeader)

Source from the content-addressed store, hash-verified

48}
49
50function appendConnectionHeaderTokens (headersToRemove, connectionHeader) {
51 const values = Array.isArray(connectionHeader) ? connectionHeader : [connectionHeader]
52
53 for (let i = 0; i < values.length; i++) {
54 const tokens = values[i].split(',')
55 for (let j = 0; j < tokens.length; j++) {
56 headersToRemove.push(trimOWS(tokens[j]).toLowerCase())
57 }
58 }
59}
60
61function getSameOriginPath (cacheKey, location) {
62 if (typeof location !== 'string') {

Callers 1

stripNecessaryHeadersFunction · 0.85

Calls 2

trimOWSFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected