Skip to content
Advertisement

Tag: httpresponse

save response of http request on variable and extract it from the function on node.js

just need to console.log output in a variable (let body on my code) rather than in the console, and res.send (“body” not “data” that send now) this variable on angular/postman where make the request as a response. if i console.log(body: ${body}) inside the function, give the same result on terminal as process.stdout.write(d). So my problem is how to extract the

Advertisement