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

Function getFieldValues

deps/undici/src/lib/web/cache/util.js:26–40  ·  view source on GitHub ↗

* @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262 * @param {string} header

(header)

Source from the content-addressed store, hash-verified

24 * @param {string} header
25 */
26function getFieldValues (header) {
27 assert(header !== null)
28
29 const values = []
30
31 for (let value of header.split(',')) {
32 value = value.trim()
33
34 if (isValidHeaderName(value)) {
35 values.push(value)
36 }
37 }
38
39 return values
40}
41
42module.exports = {
43 urlEquals,

Callers 3

processResponseMethod · 0.85
putMethod · 0.85

Calls 3

assertFunction · 0.50
splitMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected