Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8c74137

Browse files
ShogunPandatargos
authored andcommittedJul 12, 2022
doc: use consistent method symbol
PR-URL: #42974 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 3b43aa4 commit 8c74137

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed
 

Diff for: ‎doc/api/http2.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -2376,9 +2376,9 @@ changes:
23762376
queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all
23772377
counted towards the current limit. **Default:** `10`.
23782378
* `maxHeaderListPairs` {number} Sets the maximum number of header entries.
2379-
This is similar to [`http.Server#maxHeadersCount`][] or
2380-
[`http.ClientRequest#maxHeadersCount`][]. The minimum value is `4`.
2381-
**Default:** `128`.
2379+
This is similar to [`server.maxHeadersCount`][] or
2380+
[`request.maxHeadersCount`][] in the `node:http` module. The minimum value
2381+
is `4`. **Default:** `128`.
23822382
* `maxOutstandingPings` {number} Sets the maximum number of outstanding,
23832383
unacknowledged pings. **Default:** `10`.
23842384
* `maxSendHeaderBlockLength` {number} Sets the maximum allowed size for a
@@ -2533,9 +2533,9 @@ changes:
25332533
queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all
25342534
counted towards the current limit. **Default:** `10`.
25352535
* `maxHeaderListPairs` {number} Sets the maximum number of header entries.
2536-
This is similar to [`http.Server#maxHeadersCount`][] or
2537-
[`http.ClientRequest#maxHeadersCount`][]. The minimum value is `4`.
2538-
**Default:** `128`.
2536+
This is similar to [`server.maxHeadersCount`][] or
2537+
[`request.maxHeadersCount`][] in the `node:http` module. The minimum value
2538+
is `4`. **Default:** `128`.
25392539
* `maxOutstandingPings` {number} Sets the maximum number of outstanding,
25402540
unacknowledged pings. **Default:** `10`.
25412541
* `maxSendHeaderBlockLength` {number} Sets the maximum allowed size for a
@@ -2661,9 +2661,9 @@ changes:
26612661
queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all
26622662
counted towards the current limit. **Default:** `10`.
26632663
* `maxHeaderListPairs` {number} Sets the maximum number of header entries.
2664-
This is similar to [`http.Server#maxHeadersCount`][] or
2665-
[`http.ClientRequest#maxHeadersCount`][]. The minimum value is `1`.
2666-
**Default:** `128`.
2664+
This is similar to [`server.maxHeadersCount`][] or
2665+
[`request.maxHeadersCount`][] in the `node:http` module. The minimum value
2666+
is `1`. **Default:** `128`.
26672667
* `maxOutstandingPings` {number} Sets the maximum number of outstanding,
26682668
unacknowledged pings. **Default:** `10`.
26692669
* `maxReservedRemoteStreams` {number} Sets the maximum number of reserved push
@@ -4093,8 +4093,6 @@ you need to implement any fall-back behavior yourself.
40934093
[`Http2Stream`]: #class-http2stream
40944094
[`ServerHttp2Stream`]: #class-serverhttp2stream
40954095
[`TypeError`]: errors.md#class-typeerror
4096-
[`http.ClientRequest#maxHeadersCount`]: http.md#requestmaxheaderscount
4097-
[`http.Server#maxHeadersCount`]: http.md#servermaxheaderscount
40984096
[`http2.SecureServer`]: #class-http2secureserver
40994097
[`http2.Server`]: #class-http2server
41004098
[`http2.createSecureServer()`]: #http2createsecureserveroptions-onrequesthandler
@@ -4110,6 +4108,7 @@ you need to implement any fall-back behavior yourself.
41104108
[`net.connect()`]: net.md#netconnect
41114109
[`net.createServer()`]: net.md#netcreateserveroptions-connectionlistener
41124110
[`request.authority`]: #requestauthority
4111+
[`request.maxHeadersCount`]: http.md#requestmaxheaderscount
41134112
[`request.socket.getPeerCertificate()`]: tls.md#tlssocketgetpeercertificatedetailed
41144113
[`request.socket`]: #requestsocket
41154114
[`response.end()`]: #responseenddata-encoding-callback
@@ -4120,6 +4119,7 @@ you need to implement any fall-back behavior yourself.
41204119
[`response.write(data, encoding)`]: http.md#responsewritechunk-encoding-callback
41214120
[`response.writeContinue()`]: #responsewritecontinue
41224121
[`response.writeHead()`]: #responsewriteheadstatuscode-statusmessage-headers
4122+
[`server.maxHeadersCount`]: http.md#servermaxheaderscount
41234123
[`tls.Server.close()`]: tls.md#serverclosecallback
41244124
[`tls.TLSSocket`]: tls.md#class-tlstlssocket
41254125
[`tls.connect()`]: tls.md#tlsconnectoptions-callback

Diff for: ‎doc/api/https.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ added: v0.1.90
133133
* `callback` {Function}
134134
* Returns: {https.Server}
135135

136-
See [`server.close()`][`http.close()`] from the HTTP module for details.
136+
See [`server.close()`][] in the `node:http` module.
137137

138138
### `server.headersTimeout`
139139

@@ -143,7 +143,7 @@ added: v11.3.0
143143

144144
* {number} **Default:** `60000`
145145

146-
See [`http.Server#headersTimeout`][].
146+
See [`server.headersTimeout`][] in the `node:http` module.
147147

148148
### `server.listen()`
149149

@@ -154,7 +154,7 @@ This method is identical to [`server.listen()`][] from [`net.Server`][].
154154

155155
* {number} **Default:** `2000`
156156

157-
See [`http.Server#maxHeadersCount`][].
157+
See [`server.maxHeadersCount`][] in the `node:http` module.
158158

159159
### `server.requestTimeout`
160160

@@ -164,7 +164,7 @@ added: v14.11.0
164164

165165
* {number} **Default:** `0`
166166

167-
See [`http.Server#requestTimeout`][].
167+
See [`server.requestTimeout`][] in the `node:http` module.
168168

169169
### `server.setTimeout([msecs][, callback])`
170170

@@ -176,7 +176,7 @@ added: v0.11.2
176176
* `callback` {Function}
177177
* Returns: {https.Server}
178178

179-
See [`http.Server#setTimeout()`][].
179+
See [`server.setTimeout()`][] in the `node:http` module.
180180

181181
### `server.timeout`
182182

@@ -190,7 +190,7 @@ changes:
190190

191191
* {number} **Default:** 0 (no timeout)
192192

193-
See [`http.Server#timeout`][].
193+
See [`server.timeout`][] in the `node:http` module.
194194

195195
### `server.keepAliveTimeout`
196196

@@ -200,7 +200,7 @@ added: v8.0.0
200200

201201
* {number} **Default:** `5000` (5 seconds)
202202

203-
See [`http.Server#keepAliveTimeout`][].
203+
See [`server.keepAliveTimeout`][] in the `node:http` module.
204204

205205
## `https.createServer([options][, requestListener])`
206206

@@ -521,14 +521,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
521521
[`http.Agent(options)`]: http.md#new-agentoptions
522522
[`http.Agent`]: http.md#class-httpagent
523523
[`http.ClientRequest`]: http.md#class-httpclientrequest
524-
[`http.Server#headersTimeout`]: http.md#serverheaderstimeout
525-
[`http.Server#keepAliveTimeout`]: http.md#serverkeepalivetimeout
526-
[`http.Server#maxHeadersCount`]: http.md#servermaxheaderscount
527-
[`http.Server#requestTimeout`]: http.md#serverrequesttimeout
528-
[`http.Server#setTimeout()`]: http.md#serversettimeoutmsecs-callback
529-
[`http.Server#timeout`]: http.md#servertimeout
530524
[`http.Server`]: http.md#class-httpserver
531-
[`http.close()`]: http.md#serverclosecallback
532525
[`http.createServer()`]: http.md#httpcreateserveroptions-requestlistener
533526
[`http.get()`]: http.md#httpgetoptions-callback
534527
[`http.request()`]: http.md#httprequestoptions-callback
@@ -537,7 +530,14 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
537530
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
538531
[`net.Server`]: net.md#class-netserver
539532
[`new URL()`]: url.md#new-urlinput-base
533+
[`server.close()`]: http.md#serverclosecallback
534+
[`server.headersTimeout`]: http.md#serverheaderstimeout
535+
[`server.keepAliveTimeout`]: http.md#serverkeepalivetimeout
540536
[`server.listen()`]: net.md#serverlisten
537+
[`server.maxHeadersCount`]: http.md#servermaxheaderscount
538+
[`server.requestTimeout`]: http.md#serverrequesttimeout
539+
[`server.setTimeout()`]: http.md#serversettimeoutmsecs-callback
540+
[`server.timeout`]: http.md#servertimeout
541541
[`tls.connect()`]: tls.md#tlsconnectoptions-callback
542542
[`tls.createSecureContext()`]: tls.md#tlscreatesecurecontextoptions
543543
[`tls.createServer()`]: tls.md#tlscreateserveroptions-secureconnectionlistener

0 commit comments

Comments
 (0)
Please sign in to comment.