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 jasnell committed May 1, 2016
1 parent f1cd33c commit a45ab97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,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 a45ab97

Please sign in to comment.