MCPcopy
hub / github.com/JakeChampion/fetch / normalizeName

Function normalizeName

fetch.js:51–59  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

49}
50
51function normalizeName(name) {
52 if (typeof name !== 'string') {
53 name = String(name)
54 }
55 if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
56 throw new TypeError('Invalid character in header field name: "' + name + '"')
57 }
58 return name.toLowerCase()
59}
60
61function normalizeValue(value) {
62 if (typeof value !== 'string') {

Callers 2

fetch.jsFile · 0.85
fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…