Skip to content

ServerResponse doesn't inherit from stream.Writable as documented #6046

Closed
@ghost

Description

  • Version: 0.10.36
  • Platform: Mac OS X
  • Subsystem: http

While it's possible to say incomingMessage instanceof stream.Readable, it's not possible to say serverResponse instanceof stream.Writable, where incomingMessage is an instance of IncomingMessage and serverResponse is an instance of ServerResponse.

The documentation claims:

Class: http.ServerResponse#
...
The response implements the Writable Stream interface. 

This is not accurate, since it just inherits from Stream, not Stream.Writable.

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.httpIssues or PRs related to the http subsystem.streamIssues and PRs related to the stream subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions