代码之家  ›  专栏  ›  技术社区  ›  Guseyn Ismayylov

为什么server.maxHeadersCount为空?

  •  0
  • Guseyn Ismayylov  · 技术社区  · 7 年前

    我创建简单服务器

    const server = http.createServer((req, res) => {
      res.writeHead(200, { 'Content-Type': 'text/plain' });
      res.end('okay');
    });
    console.log(server.maxHeadersCount) // expected is 2000, actual is null
    

    In this section of docs 它说 server.maxHeadersCount

    0 回复  |  直到 7 年前
    推荐文章