Skip to content

Commit d437841

Browse files
Ahmad Nassrijasnell
Ahmad Nassri
authored andcommitted
doc: fix http properties documented as methods
* at 9772fb9 [`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: #12039 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 52b666e commit d437841

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/http.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -794,14 +794,14 @@ added: v5.7.0
794794
A Boolean indicating whether or not the server is listening for
795795
connections.
796796

797-
### server.maxHeadersCount([limit])
797+
### server.maxHeadersCount
798798
<!-- YAML
799799
added: v0.7.0
800800
-->
801801

802-
* `limit` {number} Defaults to 1000.
802+
* {number} Defaults to 2000.
803803

804-
Limits maximum incoming headers count, equal to 1000 by default. If set to 0 -
804+
Limits maximum incoming headers count, equal to 2000 by default. If set to 0 -
805805
no limit will be applied.
806806

807807
### server.setTimeout([msecs][, callback])
@@ -825,12 +825,12 @@ to the Server's `'timeout'` event, timeouts must be handled explicitly.
825825

826826
Returns `server`.
827827

828-
### server.timeout([msecs])
828+
### server.timeout
829829
<!-- YAML
830830
added: v0.9.12
831831
-->
832832

833-
* `msecs` {number} Defaults to 120000 (2 minutes).
833+
* {number} Defaults to 120000 (2 minutes).
834834

835835
The number of milliseconds of inactivity before a socket is presumed
836836
to have timed out.

0 commit comments

Comments
 (0)