-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
ServerResponse doesn't inherit from stream.Writable as documented #6046
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.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.streamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.
Description
Activity
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.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.streamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.
While it's possible to say
incomingMessage instanceof stream.Readable, it's not possible to sayserverResponse instanceof stream.Writable, whereincomingMessageis an instance ofIncomingMessageandserverResponseis an instance ofServerResponse.The documentation claims:
This is not accurate, since it just inherits from
Stream, notStream.Writable.