From a45ab97ab6290fb99991c701bb1dac8a86b0fd06 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.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 68f0bd6d735a8e..fad0e87e9ca1a4 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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'