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

Function isValidHeaderValue

deps/undici/undici.js:2294–2296  ·  view source on GitHub ↗
(characters)

Source from the content-addressed store, hash-verified

2292 __name(isValidHTTPToken, "isValidHTTPToken");
2293 var headerCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
2294 function isValidHeaderValue(characters) {
2295 return !headerCharRegex.test(characters);
2296 }
2297 __name(isValidHeaderValue, "isValidHeaderValue");
2298 var rangeHeaderRegex = /^bytes (\d+)-(\d+)\/(\d+|\*)?$/;
2299 function parseRangeHeader(range) {

Callers 5

constructorMethod · 0.70
processHeaderFunction · 0.70
responseLocationURLFunction · 0.70
appendHeaderFunction · 0.70
setMethod · 0.70

Calls 2

includesMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…