Skip to content

Conversation

@AllenSH12
Copy link
Contributor

Checklist
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)

doc

Description of change

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

@mscdexmscdex added http Issues or PRs related to the http subsystem. doc Issues and PRs related to the documentations. labels Apr 6, 2016
@claudiorodriguez
Copy link
Contributor

LGTM. A tiny bit of semantic ambiguity, but I wouldn't know how to make it clearer without also making it less readable, and the point gets across perfectly anyway.

@jasnell
Copy link
Member

/cc @indutny

@jasnell
Copy link
Member

ping @indutny @nodejs/http

@jasnell
Copy link
Member

this will need a rebase.

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
@AllenSH12AllenSH12force-pushed the server-response-inheritance branch from 8713746 to f590549CompareApril 21, 2016 22:36
@AllenSH12
Copy link
ContributorAuthor

@jasnell thanks for helping out, rebased 👍

@jasnell
Copy link
Member

@nodejs/documentation

@eljefedelrodeodeljefe
Copy link
Contributor

Good. LGTM.

@estliberitasestliberitasforce-pushed the master branch 2 times, most recently from 7da4fd4 to c7066fbCompareApril 26, 2016 05:23
@stevemao
Copy link
Contributor

If this must be very terse then LGTM, but I'd add more information.

@indutny
Copy link
Member

LGTM, will try to fix it eventually.

@stevemao
Copy link
Contributor

will try to fix it eventually

Fix what?

@indutny
Copy link
Member

@stevemao it should inherit from stream.Writable. I have some stuff in work, but it is a performance nightmare at the moment.

@jasnell
Copy link
Member

LGTM

jasnell pushed a commit that referenced this pull request May 1, 2016
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]>
@jasnell
Copy link
Member

Landed in a45ab97. Fixed up a minor line wrapping issue on landing.

@jasnelljasnell closed this May 1, 2016
MylesBorins pushed a commit that referenced this pull request May 3, 2016
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]>
Fishrock123 pushed a commit that referenced this pull request May 4, 2016
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]>
joelostrowski pushed a commit to joelostrowski/node that referenced this pull request May 4, 2016
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: nodejs#6046 PR-URL: nodejs#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]>
MylesBorins pushed a commit that referenced this pull request May 6, 2016
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]>
MylesBorins pushed a commit that referenced this pull request May 18, 2016
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]>
@MylesBorinsMylesBorins mentioned this pull request May 18, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ServerResponse doesn't inherit from stream.Writable as documented

8 participants

@AllenSH12@claudiorodriguez@jasnell@eljefedelrodeodeljefe@stevemao@indutny@mscdex@MylesBorins