Skip to content

Commit a45ab97

Browse files
AllenSH12jasnell
authored andcommitted
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: #6046 PR-URL: #6072 Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com> Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f1cd33c commit a45ab97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ 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
642-
[`EventEmitter`][] with the following events:
641+
The response implements, but does not inherit from, the [Writable Stream][]
642+
interface. This is an [`EventEmitter`][] with the following events:
643643

644644
### Event: 'close'
645645

0 commit comments

Comments
 (0)