Skip to content

Commit ee8f02b

Browse files
nschonniTrott
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 9a46cfc commit ee8f02b

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
@@ -2585,8 +2585,8 @@ In order to create a mixed [HTTPS][] and HTTP/2 server, refer to the
25852585
[ALPN negotiation][] section.
25862586
Upgrading from non-tls HTTP/1 servers is not supported.
25872587

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

@@ -2817,12 +2817,12 @@ added: v8.4.0
28172817
* `callback` {Function}
28182818
* Returns: {http2.Http2ServerRequest}
28192819

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

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

@@ -2951,7 +2951,7 @@ passed as the second parameter to the [`'request'`][] event.
29512951
added: v8.4.0
29522952
-->
29532953

2954-
Indicates that the underlying [`Http2Stream`]() was terminated before
2954+
Indicates that the underlying [`Http2Stream`][] was terminated before
29552955
[`response.end()`][] was called or able to flush.
29562956

29572957
#### Event: 'finish'
@@ -3182,12 +3182,12 @@ added: v8.4.0
31823182
* `callback` {Function}
31833183
* Returns: {http2.Http2ServerResponse}
31843184

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

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

@@ -3478,6 +3478,7 @@ following additional properties:
34783478
[`ClientHttp2Stream`]: #http2_class_clienthttp2stream
34793479
[`Duplex`]: stream.html#stream_class_stream_duplex
34803480
[`Http2ServerRequest`]: #http2_class_http2_http2serverrequest
3481+
[`Http2ServerResponse`]: #class-http2http2serverresponse
34813482
[`Http2Session` and Sockets]: #http2_http2session_and_sockets
34823483
[`Http2Stream`]: #http2_class_http2stream
34833484
[`ServerHttp2Stream`]: #http2_class_serverhttp2stream

0 commit comments

Comments
 (0)