receiving big response node js

Solutions on MaxInterview for receiving big response node js by the best coders in the world

showing results for - "receiving big response node js"
Marta
21 Jul 2017
1const https = require("https");const url = "https://my-json-server.typicode.com/edurekaDemo/noderequest/db";https.get(url, res => {res.setEncoding("utf8");let body = "";res.on("data", data => {body += data;});res.on("end", () => {body = JSON.parse(body);console.log(body);});});