summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAhmad Nassri <ahmad@ahmadnassri.com>2017-03-25 13:28:59 -0400
committerJames M Snell <jasnell@gmail.com>2017-03-27 10:30:50 -0700
commitd4378419616ba9eaea1023be8baef938515c160e (patch)
treef55150e306d530793bf5acdc0a4f3a67214d5d5b /doc
parent52b666ee3dd4beb76d7862337e54a35959799c1e (diff)
downloadandroid-node-v8-d4378419616ba9eaea1023be8baef938515c160e.tar.gz
android-node-v8-d4378419616ba9eaea1023be8baef938515c160e.tar.bz2
android-node-v8-d4378419616ba9eaea1023be8baef938515c160e.zip
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')
-rw-r--r--doc/api/http.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index a407c76a5e..88d83382ff 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.