-
-
Notifications
You must be signed in to change notification settings - Fork 972
Closed
Description
What would you like to discuss?
After creating a got stream like so:
const got = require("got")
const requestStream = got.stream("https://google.com")I found that to get the result buffer this needs to be done:
const pEvent = require("p-event")
const getStream = require("get-stream")
const [result] = await Promise.all([getStream.buffer(requestStream), pEvent(requestStream, "response")])Is there a simpler way to do this?
Checklist
- I have read the documentation.
Metadata
Metadata
Assignees
Labels
No labels