Node-fetch: Add .pipe to Response?

Created on 16 Jul 2016  路  2Comments  路  Source: node-fetch/node-fetch

It seems response is not a Node.js compatible read stream. It would be useful if it implemented the Node.js read stream API.

Most helpful comment

res.body is, and that's as close to Fetch Spec as we can get while staying native Node.js stream.

If Fetch Spec changed again to allow piping the whole res, we will consider this request.

All 2 comments

res.body is, and that's as close to Fetch Spec as we can get while staying native Node.js stream.

If Fetch Spec changed again to allow piping the whole res, we will consider this request.

Oh, wasn't aware of that, thanks.

Was this page helpful?
0 / 5 - 0 ratings