Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Response.buffer() method #288

Open
laggage opened this issue Feb 9, 2023 · 1 comment
Open

Add Response.buffer() method #288

laggage opened this issue Feb 9, 2023 · 1 comment

Comments

@laggage
Copy link

laggage commented Feb 9, 2023

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

@laggage laggage changed the title Missing Response.buffer() method ~~Missing~~Add Response.buffer() method Feb 9, 2023
@laggage laggage changed the title ~~Missing~~Add Response.buffer() method Add Response.buffer() method Feb 9, 2023
@alexghr
Copy link
Owner

alexghr commented Feb 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants