Skip to content

Commit 29f821b

Browse files
AllenSH12Myles Borins
authored and
Myles Borins
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: #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 2942cff commit 29f821b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ connections.
588588
This object is created internally by a HTTP server--not by the user. It is
589589
passed as the second parameter to the `'request'` event.
590590

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

594594
### Event: 'close'
595595

0 commit comments

Comments
 (0)