考虑这段代码:
var http = require("http");
http.createServer(function (request, response) {
console.log("Request received");
response.writeHead(200, { "Content-Type": "text/plain" });
response.write("Hello World");
response.end();
}).listen(8888, "127.0.0.1");
当运行此代码并转到http://127.0.0.1:8888/
节点的控制台中时,我得到 3Request received
我知道其中一个用于网站图标,另一个是主要请求,但为什么我得到 3 Request received
?