doc: fix http2 API docs typos

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Daniela Borges Matos de Carvalho 2017-10-05 14:14:39 +01:00 committed by Joyee Cheung
parent 1b358f1fde
commit ce4903426d

View File

@ -372,7 +372,7 @@ const {
const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' });
req.on('response', (headers) => { req.on('response', (headers) => {
console.log(HTTP2_HEADER_STATUS); console.log(headers[HTTP2_HEADER_STATUS]);
req.on('data', (chunk) => { /** .. **/ }); req.on('data', (chunk) => { /** .. **/ });
req.on('end', () => { /** .. **/ }); req.on('end', () => { /** .. **/ });
}); });
@ -828,8 +828,8 @@ added: v8.4.0
* Value: {Object} * Value: {Object}
* `localWindowSize` {number} * `localWindowSize` {number}
* `state` {number} * `state` {number}
* `streamLocalClose` {number} * `localClose` {number}
* `streamRemoteClose` {number} * `remoteClose` {number}
* `sumDependencyWeight` {number} * `sumDependencyWeight` {number}
* `weight` {number} * `weight` {number}
@ -1368,7 +1368,7 @@ added: v8.4.0
The `'unknownProtocol'` event is emitted when a connecting client fails to 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 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, 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' #### Event: 'stream'
<!-- YAML <!-- YAML