Skip to content

Commit acd4924

Browse files
sericaiaMylesBorins
authored andcommitted
doc: fix http2 API docs typos
PR-URL: #15778 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Bryan English <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 7475541 commit acd4924

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
@@ -375,7 +375,7 @@ const {
375375

376376
const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' });
377377
req.on('response', (headers) => {
378-
console.log(HTTP2_HEADER_STATUS);
378+
console.log(headers[HTTP2_HEADER_STATUS]);
379379
req.on('data', (chunk) => { /** .. **/ });
380380
req.on('end', () => { /** .. **/ });
381381
});
@@ -831,8 +831,8 @@ added: v8.4.0
831831
* Value: {Object}
832832
* `localWindowSize` {number}
833833
* `state` {number}
834-
* `streamLocalClose` {number}
835-
* `streamRemoteClose` {number}
834+
* `localClose` {number}
835+
* `remoteClose` {number}
836836
* `sumDependencyWeight` {number}
837837
* `weight` {number}
838838

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

13761376
#### Event: 'stream'
13771377
<!-- YAML

0 commit comments

Comments
 (0)