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: #6046
PR-URL: #6072
Reviewed-By: Claudio Rodriguez <[email protected]>
Reviewed-By: Robert Lindstaedt <[email protected]>
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
AllenSH12 authored and Myles Borins committed May 18, 2016
1 parent 2942cff commit 29f821b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ 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
[`EventEmitter`][] with the following events:
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 29f821b

Please sign in to comment.