You are reading a single comment by @Robin and its replies.
Click here to read the full conversation.
-
The code
console.log("back from network?",res)
didn't print anything.tp.get("http://www.pur3.co.uk/hello.txt", function (res) { console.log("back from network?",res) let str = ''; res.on('data', chunk => { console.log("chunk",chunk); str += chunk; }); res.on('end', () => { console.log("result: ---> ", str); }); });
In the Mehtod recv(), I did got datas and retruned them. But where these datas go I really don't know, and how do they go back to http.get response body?
console.log("[recv data]", r)
return r;
Tue 2020.03.24
Has an attempt to place a console.log() statement just after the http.get request at L1a to see if anything is being detected/returned within the callback?
or use of the debugger?
Related content with fix
Could it be related to https