From 29f821b73db0e984ed29ee3757bf0067d07abd4c Mon Sep 17 00:00:00 2001 From: Allen Hernandez Date: Tue, 5 Apr 2016 22:13:43 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/6046 PR-URL: https://github.com/nodejs/node/pull/6072 Reviewed-By: Claudio Rodriguez Reviewed-By: Robert Lindstaedt Reviewed-By: Fedor Indutny Reviewed-By: James M Snell --- doc/api/http.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 00eb188c94aa27..888cfecca2e8a3 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -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'