(req: IncomingMessage)
| 138 | } |
| 139 | |
| 140 | async function drainBody(req: IncomingMessage): Promise<Buffer> { |
| 141 | const parts: Buffer[] = []; |
| 142 | for await (const chunk of req) { |
| 143 | parts.push(chunk as Buffer); |
| 144 | } |
| 145 | return Buffer.concat(parts); |
| 146 | } |
| 147 | |
| 148 | function buildResponsesEvents(text: string, id: string): Array<Record<string, unknown>> { |
| 149 | return [ |
no test coverage detected
searching dependent graphs…