(next: string | Uint8Array)
| 95 | let parts: string | Uint8Array[] = JSON.stringify(envHeaders); |
| 96 | |
| 97 | function append(next: string | Uint8Array): void { |
| 98 | if (typeof parts === 'string') { |
| 99 | parts = typeof next === 'string' ? parts + next : [encodeUTF8(parts), next]; |
| 100 | } else { |
| 101 | parts.push(typeof next === 'string' ? encodeUTF8(next) : next); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | for (const item of items) { |
| 106 | const [itemHeaders, payload] = item; |
no test coverage detected