how to use pipe in node-fetch #1390
Unanswered
code-masala
asked this question in
Q&A
Replies: 3 comments 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions