From ce4903426dac9b0c851cf8dba2511e3eebd5c352 Mon Sep 17 00:00:00 2001 From: Daniela Borges Matos de Carvalho Date: Thu, 5 Oct 2017 14:14:39 +0100 Subject: [PATCH] doc: fix http2 API docs typos PR-URL: https://github.com/nodejs/node/pull/15778 Reviewed-By: Joyee Cheung Reviewed-By: Lance Ball Reviewed-By: Bryan English Reviewed-By: Colin Ihrig --- doc/api/http2.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 79536acd4f6..d7691618b46 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -372,7 +372,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', () => { /** .. **/ }); }); @@ -828,8 +828,8 @@ added: v8.4.0 * Value: {Object} * `localWindowSize` {number} * `state` {number} - * `streamLocalClose` {number} - * `streamRemoteClose` {number} + * `localClose` {number} + * `remoteClose` {number} * `sumDependencyWeight` {number} * `weight` {number} @@ -1368,7 +1368,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'