Skip to content

Commit

Permalink
doc: fix http2 API docs typos
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
sericaia authored and MylesBorins committed Oct 11, 2017
1 parent 7475541 commit acd4924
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const {

const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' });
req.on('response', (headers) => {
console.log(HTTP2_HEADER_STATUS);
console.log(headers[HTTP2_HEADER_STATUS]);
req.on('data', (chunk) => { /** .. **/ });
req.on('end', () => { /** .. **/ });
});
Expand Down Expand Up @@ -831,8 +831,8 @@ added: v8.4.0
* Value: {Object}
* `localWindowSize` {number}
* `state` {number}
* `streamLocalClose` {number}
* `streamRemoteClose` {number}
* `localClose` {number}
* `remoteClose` {number}
* `sumDependencyWeight` {number}
* `weight` {number}

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

#### Event: 'stream'
<!-- YAML
Expand Down

0 comments on commit acd4924

Please sign in to comment.