Skip to content

Commit ce49034

Browse files
sericaiajoyeecheung
authored andcommitted
doc: fix http2 API docs typos
PR-URL: #15778 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Bryan English <bryan@bryanenglish.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 1b358f1 commit ce49034

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/http2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ const {
372372

373373
const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' });
374374
req.on('response', (headers) => {
375-
console.log(HTTP2_HEADER_STATUS);
375+
console.log(headers[HTTP2_HEADER_STATUS]);
376376
req.on('data', (chunk) => { /** .. **/ });
377377
req.on('end', () => { /** .. **/ });
378378
});
@@ -828,8 +828,8 @@ added: v8.4.0
828828
* Value: {Object}
829829
* `localWindowSize` {number}
830830
* `state` {number}
831-
* `streamLocalClose` {number}
832-
* `streamRemoteClose` {number}
831+
* `localClose` {number}
832+
* `remoteClose` {number}
833833
* `sumDependencyWeight` {number}
834834
* `weight` {number}
835835

@@ -1368,7 +1368,7 @@ added: v8.4.0
13681368
The `'unknownProtocol'` event is emitted when a connecting client fails to
13691369
negotiate an allowed protocol (i.e. HTTP/2 or HTTP/1.1). The event handler
13701370
receives the socket for handling. If no listener is registered for this event,
1371-
the connection is terminated. See the
1371+
the connection is terminated. See the [Compatibility API][].
13721372

13731373
#### Event: 'stream'
13741374
<!-- YAML

0 commit comments

Comments
 (0)