(name)
| 12465 | * @see https://fetch.spec.whatwg.org/#header-list-contains |
| 12466 | * @param {string} name |
| 12467 | * @param {boolean} isLowerCase |
| 12468 | */ |
| 12469 | contains(name, isLowerCase) { |
| 12470 | return this[kHeadersMap].has(isLowerCase ? name : name.toLowerCase()); |
| 12471 | } |
| 12472 | clear() { |
| 12473 | this[kHeadersMap].clear(); |
| 12474 | this[kHeadersSortedMap] = null; |
| 12475 | this.cookies = null; |
| 12476 | } |
| 12477 | /** |
| 12478 | * @see https://fetch.spec.whatwg.org/#concept-header-list-append |
| 12479 | * @param {string} name |
| 12480 | * @param {string} value |
| 12481 | * @param {boolean} isLowerCase |
| 12482 | */ |
| 12483 | append(name, value, isLowerCase) { |
| 12484 | var _a; |
| 12485 | this[kHeadersSortedMap] = null; |
| 12486 | const lowercaseName = isLowerCase ? name : name.toLowerCase(); |
| 12487 | const exists2 = this[kHeadersMap].get(lowercaseName); |
| 12488 | if (exists2) { |
| 12489 | const delimiter2 = lowercaseName === "cookie" ? "; " : ", "; |
nothing calls this directly
no test coverage detected