MCPcopy Create free account
hub / github.com/forwardemail/superagent / read

Function read

test/node/pipe.js:97–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected