MCPcopy
hub / github.com/nodejs/undici / isValidHeaderValue

Function isValidHeaderValue

lib/core/util.js:774–776  ·  view source on GitHub ↗

* @param {string} characters * @returns {boolean}

(characters)

Source from the content-addressed store, hash-verified

772 * @returns {boolean}
773 */
774function isValidHeaderValue (characters) {
775 return !headerCharRegex.test(characters)
776}
777
778const rangeHeaderRegex = /^bytes (\d+)-(\d+)\/(\d+|\*)?$/
779

Callers 4

constructorMethod · 0.70
processHeaderFunction · 0.70
util.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…