()
| 2565 | this.message = message; |
| 2566 | } |
| 2567 | readBody() { |
| 2568 | return __awaiter(this, void 0, void 0, function* () { |
| 2569 | return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { |
| 2570 | let output = Buffer.alloc(0); |
| 2571 | this.message.on('data', (chunk) => { |
| 2572 | output = Buffer.concat([output, chunk]); |
| 2573 | }); |
| 2574 | this.message.on('end', () => { |
| 2575 | resolve(output.toString()); |
| 2576 | }); |
| 2577 | })); |
| 2578 | }); |
| 2579 | } |
| 2580 | } |
| 2581 | exports.HttpClientResponse = HttpClientResponse; |
| 2582 | function isHttps(requestUrl) { |
no test coverage detected