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

Function removeHTTPWhitespace

deps/undici/src/lib/web/fetch/data-url.js:528–530  ·  view source on GitHub ↗

* @see https://fetch.spec.whatwg.org/#http-whitespace * @param {string} str * @param {boolean} [leading=true] * @param {boolean} [trailing=true]

(str, leading = true, trailing = true)

Source from the content-addressed store, hash-verified

526 * @param {boolean} [trailing=true]
527 */
528function removeHTTPWhitespace (str, leading = true, trailing = true) {
529 return removeChars(str, leading, trailing, isHTTPWhiteSpace)
530}
531
532/**
533 * @see https://mimesniff.spec.whatwg.org/#minimize-a-supported-mime-type

Callers 2

parseMIMETypeFunction · 0.70
parseExtensionsFunction · 0.50

Calls 1

removeCharsFunction · 0.70

Tested by

no test coverage detected