got-fetch icon indicating copy to clipboard operation
got-fetch copied to clipboard

Add `Response.buffer()` method

Open laggage opened this issue 2 years ago • 1 comments

In node-fetch, there have a handy(in my opinion) Response.buffer(), may be we can add this?

laggage avatar Feb 09 '23 13:02 laggage

Hey, maybe we could implement Response.arrayBuffer and use Buffer.from(await response.arrayBuffer())? This way wed' keep the interface unchanged from fetch's Response.

alexghr avatar Feb 27 '23 08:02 alexghr