MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / headerValueNormalize

Function headerValueNormalize

out/cli.cjs:58392–58398  ·  view source on GitHub ↗
(potentialValue)

Source from the content-addressed store, hash-verified

58390 var util4 = require("util");
58391 var { webidl } = require_webidl();
58392 var assert2 = require("assert");
58393 var kHeadersMap = Symbol("headers map");
58394 var kHeadersSortedMap = Symbol("headers map sorted");
58395 function isHTTPWhiteSpaceCharCode(code) {
58396 return code === 10 || code === 13 || code === 9 || code === 32;
58397 }
58398 function headerValueNormalize(potentialValue) {
58399 let i3 = 0;
58400 let j4 = potentialValue.length;
58401 while (j4 > i3 && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j4 - 1))) --j4;

Callers 2

appendHeaderFunction · 0.85
setMethod · 0.85

Calls 1

isHTTPWhiteSpaceCharCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…