Skip to content

Commit fcbee7b

Browse files
vsemozhetbytjasnell
authored andcommitted
doc: fix some links in http2.md
PR-URL: #15481 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 9d6b0e6 commit fcbee7b

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
@@ -16,7 +16,8 @@ in order to use the `'http2'` module.
1616

1717
The Core API provides a low-level interface designed specifically around
1818
support for HTTP/2 protocol features. It is specifically *not* designed for
19-
compatibility with the existing [HTTP/1][] module API. However, the [Compatibility API][] is.
19+
compatibility with the existing [HTTP/1][] module API. However,
20+
the [Compatibility API][] is.
2021

2122
The following illustrates a simple, plain-text HTTP/2 server using the
2223
Core API:
@@ -1305,7 +1306,7 @@ added: v8.4.0
13051306
* `response` {http2.Http2ServerResponse}
13061307

13071308
Emitted each time there is a request. Note that there may be multiple requests
1308-
per session. See the [Compatibility API](compatiblity-api).
1309+
per session. See the [Compatibility API][].
13091310

13101311
#### Event: 'timeout'
13111312
<!-- YAML
@@ -1413,7 +1414,7 @@ added: v8.4.0
14131414
* `response` {http2.Http2ServerResponse}
14141415

14151416
Emitted each time there is a request. Note that there may be multiple requests
1416-
per session. See the [Compatibility API](compatiblity-api).
1417+
per session. See the [Compatibility API][].
14171418

14181419
#### Event: 'timeout'
14191420
<!-- YAML
@@ -1915,8 +1916,8 @@ req.end('Jane');
19151916

19161917
The Compatibility API has the goal of providing a similar developer experience
19171918
of HTTP/1 when using HTTP/2, making it possible to develop applications
1918-
that supports both [HTTP/1](HTTP/1) and HTTP/2. This API targets only the
1919-
**public API** of the [HTTP/1](HTTP/1), however many modules uses internal
1919+
that supports both [HTTP/1][] and HTTP/2. This API targets only the
1920+
**public API** of the [HTTP/1][], however many modules uses internal
19201921
methods or state, and those _are not supported_ as it is a completely
19211922
different implementation.
19221923

@@ -1976,7 +1977,7 @@ function onRequest(req, res) {
19761977
}
19771978
```
19781979

1979-
The `'request'` event works identically on both [HTTPS](https) and
1980+
The `'request'` event works identically on both [HTTPS][] and
19801981
HTTP/2.
19811982

19821983
### Class: http2.Http2ServerRequest
@@ -2605,7 +2606,7 @@ added: v8.4.0
26052606
Sends a response header to the request. The status code is a 3-digit HTTP
26062607
status code, like `404`. The last argument, `headers`, are the response headers.
26072608

2608-
For compatibility with [HTTP/1](), a human-readable `statusMessage` may be
2609+
For compatibility with [HTTP/1][], a human-readable `statusMessage` may be
26092610
passed as the second argument. However, because the `statusMessage` has no
26102611
meaning within HTTP/2, the argument will have no effect and a process warning
26112612
will be emitted.

0 commit comments

Comments
 (0)