ServerResponse doesn't inherit from stream.Writable as documented #6046
Closed
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
.