Skip to content

Getting the body from a Got stream #1613

Answered by sindresorhus
Richienb asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to just do const data = await getStream(got.stream(…));.

const data = await getStream(got.stream(''));

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by szmarczak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1612 on February 17, 2021 11:08.