Skip to content

doc: fix http properties documented as methods #12039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ added: v0.11.2

See [`http.Server#setTimeout()`][].

### server.timeout([msecs])
### server.timeout
<!-- YAML
added: v0.11.2
-->
- `msecs` {number} Defaults to 120000 (2 minutes).
- {number} Defaults to 120000 (2 minutes).

See [`http.Server#timeout`][].

Expand Down