Browse Source

doc: fix http properties documented as methods

* at 9772fb9282
  [`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]: e0a9ad1af2/lib/_http_server.js (L276)
[timeout]: e0a9ad1af2/lib/_http_server.js (L273)
[default]: e0a9ad1af2/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>
v6
Ahmad Nassri 8 years ago
committed by James M Snell
parent
commit
d437841961
  1. 10
      doc/api/http.md

10
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.

Loading…
Cancel
Save