Skip to content

Commit f590549

Browse files
committed
doc: clarifies http.serverResponse implementation
Since http.serverResponse does not inherit from Stream.writable it does not pass the test `serverResponse instanceof stream.Writable`. This commit clarifies that serverResponse does not inherit from stream.Writable and therefore should not be expected to pass the above test - fixes node/node.js#6046
1 parent 1fa8fce commit f590549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ connections.
638638
This object is created internally by a HTTP server--not by the user. It is
639639
passed as the second parameter to the `'request'` event.
640640

641-
The response implements the [Writable Stream][] interface. This is an
641+
The response implements, but does not inherit from, the [Writable Stream][] interface. This is an
642642
[`EventEmitter`][] with the following events:
643643

644644
### Event: 'close'

0 commit comments

Comments
 (0)