From f5905492a4e25ef4e1bccc060aed85dd5bf8e7a6 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 node/node.js#6046 --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 68f0bd6d735a8e..a5eaf065d1cd65 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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'