how to use pipe in node-fetch #1390
Unanswered
code-masala
asked this question in
Q&A
Replies: 3 comments
-
this is giving error @Richienb |
Beta Was this translation helpful? Give feedback.
0 replies
-
fetch(url, {
method: "POST",
body:obj
})
.then((res) => res.json())
.then(json => {
// ...
}); or fetch(url, {
method: "POST",
body:obj
})
.then((res) => {
res.body.pipe(dest)
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure if this is the same as native Fetch in Node but when trying to use Fetch to download a file, I get the following |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions