From af051f65283ce01685d911b14fb633b4fccdf1ac Mon Sep 17 00:00:00 2001 From: Ahmad Nassri Date: Sat, 25 Mar 2017 13:28:59 -0400 Subject: [PATCH] doc: fix http properties documented as methods * at 9772fb928263562a755f1aeef6a65620e7e51bf2 [`maxHeadersCount`][maxheaderscount] and [`timeout`][timeout] were erroneously changed to methods * `maxHeadersCount` was also listed to default to `1000` where it actually is [`2000`][default] [maxheaderscount]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L276 [timeout]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L273 [default]: https://github.com/nodejs/node/blob/e0a9ad1af244f8756a228a6d087b3a55ee4c0d14/lib/_http_server.js#L312 PR-URL: https://github.com/nodejs/node/pull/12039 Reviewed-By: Luigi Pinca Reviewed-By: Franziska Hinkelmann Reviewed-By: James M Snell --- doc/api/http.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index a407c76a5e9550..88d83382ff070d 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -794,14 +794,14 @@ added: v5.7.0 A Boolean indicating whether or not the server is listening for connections. -### server.maxHeadersCount([limit]) +### server.maxHeadersCount -* `limit` {number} Defaults to 1000. +* {number} Defaults to 2000. -Limits maximum incoming headers count, equal to 1000 by default. If set to 0 - +Limits maximum incoming headers count, equal to 2000 by default. If set to 0 - no limit will be applied. ### server.setTimeout([msecs][, callback]) @@ -825,12 +825,12 @@ to the Server's `'timeout'` event, timeouts must be handled explicitly. Returns `server`. -### server.timeout([msecs]) +### server.timeout -* `msecs` {number} Defaults to 120000 (2 minutes). +* {number} Defaults to 120000 (2 minutes). The number of milliseconds of inactivity before a socket is presumed to have timed out.