NodeJS源码分析(2)【HTTP Server模块】

http是nodejs中重要的模块之一,有必要了解它的运行原理node 回到helloworld ,当node在收到一个http请求,会建立一个http.Server,注册并监听request。web var http = require('http'); http.createServer((req, res) => { res.writeHead(200, { 'Content-Type'
相关文章
相关标签/搜索