From d7ee873c71712c046bc5e8457646247e08715618 Mon Sep 17 00:00:00 2001 From: Qingyu Deng Date: Wed, 24 Mar 2021 23:38:10 +0800 Subject: [PATCH 1/2] doc: add arguments for stream event of Http2Server and Http2SecureServer --- doc/api/http2.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/api/http2.md b/doc/api/http2.md index fa7c666e87436b..63d761c8228212 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1815,9 +1815,17 @@ an `Http2Session` object associated with the `Http2Server`. added: v8.4.0 --> +* `stream` {Http2Stream} A reference to the stream +* `headers` {HTTP/2 Headers Object} An object describing the headers +* `flags` {number} The associated numeric flags +* `rawHeaders` {Array} An array containing the raw header names followed by + their respective values. + The `'stream'` event is emitted when a `'stream'` event has been emitted by an `Http2Session` associated with the server. +See also [`Http2Session`'s `stream` event][]. + ```js const http2 = require('http2'); const { @@ -2003,9 +2011,17 @@ an `Http2Session` object associated with the `Http2SecureServer`. added: v8.4.0 --> +* `stream` {Http2Stream} A reference to the stream +* `headers` {HTTP/2 Headers Object} An object describing the headers +* `flags` {number} The associated numeric flags +* `rawHeaders` {Array} An array containing the raw header names followed by + their respective values. + The `'stream'` event is emitted when a `'stream'` event has been emitted by an `Http2Session` associated with the server. +See also [`Http2Session`'s `stream` event][]. + ```js const http2 = require('http2'); const { @@ -3838,6 +3854,7 @@ you need to implement any fall-back behaviour yourself. [`Http2ServerRequest`]: #http2_class_http2_http2serverrequest [`Http2ServerResponse`]: #http2_class_http2_http2serverresponse [`Http2Session` and Sockets]: #http2_http2session_and_sockets +[`Http2Session`'s `stream` event]: #http2_event_stream [`Http2Stream`]: #http2_class_http2stream [`ServerHttp2Stream`]: #http2_class_serverhttp2stream [`TypeError`]: errors.md#errors_class_typeerror From 26d329d8f6768dbb35ba7c23c6f202f14a0d14a6 Mon Sep 17 00:00:00 2001 From: Qingyu Deng Date: Fri, 26 Mar 2021 10:21:41 +0800 Subject: [PATCH 2/2] fixup! doc: add arguments for stream event of Http2Server and Http2SecureServer --- doc/api/http2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 63d761c8228212..7ddb638942f1f8 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1824,7 +1824,7 @@ added: v8.4.0 The `'stream'` event is emitted when a `'stream'` event has been emitted by an `Http2Session` associated with the server. -See also [`Http2Session`'s `stream` event][]. +See also [`Http2Session`'s `'stream'` event][]. ```js const http2 = require('http2'); @@ -2020,7 +2020,7 @@ added: v8.4.0 The `'stream'` event is emitted when a `'stream'` event has been emitted by an `Http2Session` associated with the server. -See also [`Http2Session`'s `stream` event][]. +See also [`Http2Session`'s `'stream'` event][]. ```js const http2 = require('http2'); @@ -3854,7 +3854,7 @@ you need to implement any fall-back behaviour yourself. [`Http2ServerRequest`]: #http2_class_http2_http2serverrequest [`Http2ServerResponse`]: #http2_class_http2_http2serverresponse [`Http2Session` and Sockets]: #http2_http2session_and_sockets -[`Http2Session`'s `stream` event]: #http2_event_stream +[`Http2Session`'s `'stream'` event]: #http2_event_stream [`Http2Stream`]: #http2_class_http2stream [`ServerHttp2Stream`]: #http2_class_serverhttp2stream [`TypeError`]: errors.md#errors_class_typeerror