()
| 95 | let chunkSent = false; |
| 96 | const stream = new Readable({ |
| 97 | read() { |
| 98 | if (chunkSent) return; |
| 99 | |
| 100 | chunkSent = true; |
| 101 | this.push(Buffer.from('{"name":"tobi"}')); |
| 102 | setTimeout(() => this.push(null), 100); |
| 103 | } |
| 104 | }); |
| 105 | const request_ = request.post(`${base}/early-response`).type('json'); |
| 106 |
nothing calls this directly
no outgoing calls
no test coverage detected