Skip to content

Commit ebd2e7b

Browse files
nschonniBridgeAR
authored andcommitted
doc: format http2 anchor link and reference
Some links were flagged as empty links by Markdownlint MD042. The HttpServerResponse anchor link was also not defined. PR-URL: #29362 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 875c3d3 commit ebd2e7b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/api/http2.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,8 +2610,8 @@ In order to create a mixed [HTTPS][] and HTTP/2 server, refer to the
26102610
[ALPN negotiation][] section.
26112611
Upgrading from non-tls HTTP/1 servers is not supported.
26122612

2613-
The HTTP/2 compatibility API is composed of [`Http2ServerRequest`]() and
2614-
[`Http2ServerResponse`](). They aim at API compatibility with HTTP/1, but
2613+
The HTTP/2 compatibility API is composed of [`Http2ServerRequest`][] and
2614+
[`Http2ServerResponse`][]. They aim at API compatibility with HTTP/1, but
26152615
they do not hide the differences between the protocols. As an example,
26162616
the status message for HTTP codes is ignored.
26172617

@@ -2830,12 +2830,12 @@ added: v8.4.0
28302830
* `callback` {Function}
28312831
* Returns: {http2.Http2ServerRequest}
28322832

2833-
Sets the [`Http2Stream`]()'s timeout value to `msecs`. If a callback is
2833+
Sets the [`Http2Stream`][]'s timeout value to `msecs`. If a callback is
28342834
provided, then it is added as a listener on the `'timeout'` event on
28352835
the response object.
28362836

28372837
If no `'timeout'` listener is added to the request, the response, or
2838-
the server, then [`Http2Stream`]()s are destroyed when they time out. If a
2838+
the server, then [`Http2Stream`][]s are destroyed when they time out. If a
28392839
handler is assigned to the request, the response, or the server's `'timeout'`
28402840
events, timed out sockets must be handled explicitly.
28412841

@@ -2964,7 +2964,7 @@ passed as the second parameter to the [`'request'`][] event.
29642964
added: v8.4.0
29652965
-->
29662966

2967-
Indicates that the underlying [`Http2Stream`]() was terminated before
2967+
Indicates that the underlying [`Http2Stream`][] was terminated before
29682968
[`response.end()`][] was called or able to flush.
29692969

29702970
#### Event: 'finish'
@@ -3192,12 +3192,12 @@ added: v8.4.0
31923192
* `callback` {Function}
31933193
* Returns: {http2.Http2ServerResponse}
31943194

3195-
Sets the [`Http2Stream`]()'s timeout value to `msecs`. If a callback is
3195+
Sets the [`Http2Stream`][]'s timeout value to `msecs`. If a callback is
31963196
provided, then it is added as a listener on the `'timeout'` event on
31973197
the response object.
31983198

31993199
If no `'timeout'` listener is added to the request, the response, or
3200-
the server, then [`Http2Stream`]()s are destroyed when they time out. If a
3200+
the server, then [`Http2Stream`][]s are destroyed when they time out. If a
32013201
handler is assigned to the request, the response, or the server's `'timeout'`
32023202
events, timed out sockets must be handled explicitly.
32033203

@@ -3490,6 +3490,7 @@ following additional properties:
34903490
[`ClientHttp2Stream`]: #http2_class_clienthttp2stream
34913491
[`Duplex`]: stream.html#stream_class_stream_duplex
34923492
[`Http2ServerRequest`]: #http2_class_http2_http2serverrequest
3493+
[`Http2ServerResponse`]: #class-http2http2serverresponse
34933494
[`Http2Session` and Sockets]: #http2_http2session_and_sockets
34943495
[`Http2Stream`]: #http2_class_http2stream
34953496
[`ServerHttp2Stream`]: #http2_class_serverhttp2stream

0 commit comments

Comments
 (0)