diff options
author | Ahmad Nassri <ahmad@ahmadnassri.com> | 2017-03-25 20:28:59 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-27 20:30:50 +0300 |
commit | d4378419616ba9eaea1023be8baef938515c160e (patch) | |
tree | f55150e306d530793bf5acdc0a4f3a67214d5d5b /doc/api/http.md | |
parent | 52b666ee3dd4beb76d7862337e54a35959799c1e (diff) |
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 <luigipinca@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r-- | doc/api/http.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index a407c76a5e9..88d83382ff0 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 <!-- YAML added: v0.7.0 --> -* `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 <!-- YAML added: v0.9.12 --> -* `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. |