Repository navigation
State explicitly in docs that 'close' does not take any arguments #20018
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.http2Issues and PRs related to the http2 subsystem.Issues and PRs related to the http2 subsystem.
Description
Activity
cc @mcollina @nodejs/http2 does this look good? Feel free to suggest any structural changes, and I'd base the remaining issues on the finalized structure.
This is fine. Want to open a PR?
- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.http2Issues and PRs related to the http2 subsystem.Issues and PRs related to the http2 subsystem.
on Apr 13, 2018 At nodejs/help#877 (comment), @mcollina had suggested opening a few "good first issues", and that was why I was interested in the structure of the issue (so that first time contributors find it convenient). That said, I'm willing to open a PR if that's what you're propose, but that wasn't the intent when I opened the issue.
- addedgood first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Apr 14, 2018 Added the "good first issue tag"
- added 2 commits that reference this issue
on Apr 14, 2018 - added a commit that references this issue
on Apr 16, 2018 - added a commit that references this issue
on May 1, 2018 - added a commit that references this issue
on Aug 23, 2018 - added 4 commits that reference this issue
on Sep 11, 2018 - added a commit that references this issue
on Oct 16, 2018 - added a commit that references this issue
on Jul 27, 2026
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.http2Issues and PRs related to the http2 subsystem.Issues and PRs related to the http2 subsystem.
In the
http2module, theHttp2Sessionclass emits an event namedclose, which is documented at https://github.com/nodejs/node/blob/master/doc/api/http2.md#event-close.As evident from the following function from
lib/internal/http2/core.js, the event does not expect any arguments:However, the current docs do a poor job of communicating this, therefore creating confusion.
Thus, the fact that the
closeevent does not expect arguments should be explicitly mentioned in the docs.The exact source can be found at:
node/doc/api/http2.md
Lines 126 to 131 in 6376d43