MCPcopy Create free account
hub / github.com/nodejs/node / isHTTPWhiteSpaceCharCode

Function isHTTPWhiteSpaceCharCode

deps/undici/src/lib/web/fetch/headers.js:20–22  ·  view source on GitHub ↗

* @param {number} code * @returns {code is (0x0a | 0x0d | 0x09 | 0x20)}

(code)

Source from the content-addressed store, hash-verified

18 * @returns {code is (0x0a | 0x0d | 0x09 | 0x20)}
19 */
20function isHTTPWhiteSpaceCharCode (code) {
21 return code === 0x0a || code === 0x0d || code === 0x09 || code === 0x20
22}
23
24/**
25 * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize

Callers 1

headerValueNormalizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected