(name, value)
| 12456 | return headers; |
| 12457 | } |
| 12458 | // https://fetch.spec.whatwg.org/#convert-header-names-to-a-sorted-lowercase-set |
| 12459 | toSortedArray() { |
| 12460 | const size = this[kHeadersMap].size; |
| 12461 | const array = new Array(size); |
| 12462 | if (size <= 32) { |
| 12463 | if (size === 0) { |
| 12464 | return array; |
| 12465 | } |
| 12466 | const iterator = this[kHeadersMap][Symbol.iterator](); |
| 12467 | const firstValue = iterator.next().value; |
| 12468 | array[0] = [firstValue[0], firstValue[1].value]; |
no test coverage detected