diff options
author | Daeyeon Jeong <daeyeon.dev@gmail.com> | 2022-05-24 14:29:56 +0300 |
---|---|---|
committer | Bryan English <bryan@bryanenglish.com> | 2022-05-30 19:33:54 +0300 |
commit | a07f5f28f31281c70095b0ff765e5930bad60c79 (patch) | |
tree | b496808980f72011c3f359110f1ed2b69a97d21e /tools | |
parent | 3082c75efd5dc12611347668a551a21d0159cd92 (diff) |
http2: improve tests and docs
This commit documents the event parameters and `http2stream.respond`,
and adds some tests to ensure the actual behaviors are aligned with
the docs.
Testing the 'Http2Server.sessionError' event is added by updating
`test/parallel/test-http2-options-max-headers-exceeds-nghttp2.js`.
The event seemingly has not been tested so far.
`ServerHttp2Session` is exported to validate the `session` event
and the `sessionError` event.
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
PR-URL: https://github.com/nodejs/node/pull/42858
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/type-parser.mjs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/doc/type-parser.mjs b/tools/doc/type-parser.mjs index 7d76d072c34..f77123b767c 100644 --- a/tools/doc/type-parser.mjs +++ b/tools/doc/type-parser.mjs @@ -164,6 +164,7 @@ const customTypesMap = { 'Http2Session': 'http2.html#class-http2session', 'Http2Stream': 'http2.html#class-http2stream', 'ServerHttp2Stream': 'http2.html#class-serverhttp2stream', + 'ServerHttp2Session': 'http2.html#class-serverhttp2session', 'https.Server': 'https.html#class-httpsserver', |