Skip to content

Commit

Permalink
doc: clarifies http.serverResponse implementation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AllenSH12 committed Apr 21, 2016
1 parent 1fa8fce commit f590549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ connections.
This object is created internally by a HTTP server--not by the user. It is
passed as the second parameter to the `'request'` event.

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

### Event: 'close'
Expand Down

0 comments on commit f590549

Please sign in to comment.