| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@nodejs/documentation |
Sorry, something went wrong.
There was a problem hiding this comment.
I would change There's an EventEmitter with the following events to It will emit the following events:
The There's an EventEmitter part looks like it is something different from the response.
Sorry, something went wrong.
There was a problem hiding this comment.
OK, fixed. Thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Doc format LGTM.
Sorry, something went wrong.
|
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
Sorry, something went wrong.
|
Please could whoever lands this correct the spelling of explanations in the commit message? |
Sorry, something went wrong.
There was a problem hiding this comment.
I'm confused by this. Does it implement all the methods of Writeable Stream? If so, then "with all methods of Writable Stream". But if that's the case, then "implements the interface" seems correct to me in the first place.
If it's not all the methods, can we say which methods it implements and which it does not?
Sorry, something went wrong.
The answer is:No. So you are also feeling confused by such sayings now :) But don't worry. Let's compare the methods together in both Stream.Writable and Stream to make it more clear! 【Stream.Writable】 【ServerResponse】 ONLY the two in bold below are the same (similar but NOT FROM Stream.Writable). Other methods from Stream.Writable aren't implemented yet (Maybe we don't need them according to the real case). |
Sorry, something went wrong.
|
@Trott:Add two diff methods as more clear. Thanks |
Sorry, something went wrong.
There was a problem hiding this comment.
Is It will emit the following events: omission intentional?
Sorry, something went wrong.
There was a problem hiding this comment.
I don't think we usually preface documented events with a sentence like that so I'm for removing it.
Sorry, something went wrong.
There was a problem hiding this comment.
Can we just omit the two methods and the mention of Writable Stream? The methods are documented below and mentioning Writable Stream here seems to confuse more than enlighten.
The request inherits from [Stream][].That's all that needs to be said. (Or is there a good reason to mention the other stuff?)
Sorry, something went wrong.
There was a problem hiding this comment.
Consider we still have events' introductions below it, so what about saying this as a transitional one?
The` request inherits from [Stream][], with some events, properties and methods below:
Sorry, something went wrong.
There was a problem hiding this comment.
This line is unnecessary and can be removed.
Sorry, something went wrong.
There was a problem hiding this comment.
OK. I'll remove.
Sorry, something went wrong.
|
@Trott: However it would be nicer if we add some transitional statement to link the explainations with the events, I don't want to see that events' introduction suddenly occur without a brief transitional introduction. Something like this: The request inherits from [Stream][], with some properties, events and methods below: #Event 'connect' …… If you insist your ideas and please still tell me, I'll do what you want :) |
Sorry, something went wrong.
|
How about this?: The request inherits from [Stream][], and additionally implements the following:
#Event 'connect' |
Sorry, something went wrong.
Ref: #14146. In short: `ServerResponse` acutally inherits from `OutgoingMessage`, with a series of methods like those in `Stream.Writable`. So we cannot use `implements`(this has made poeple feel puzzled because there are still many methods we don't need or have), so `inherits from Stream` is enough, due to some core reasons and performance told by mcollina from the ref (See some latest discussions at Ref).
Sorry, something went wrong.
Sorry, something went wrong.
|
Thanks! It seems I've passed all. |
Sorry, something went wrong.
In short: `ServerResponse` acutally inherits from `OutgoingMessage`, with a series of methods like those in `Stream.Writable`. So we cannot use `implements`(this has made poeple feel puzzled because there are still many methods we don't need or have), so `inherits from Stream` is enough, due to some core reasons and performance told by mcollina from the ref (See some latest discussions at Ref). Ref: nodejs#14146. PR-URL: nodejs#22305 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
An interesting thing I've noticed quite long:we landed the submitted changes and closed it, instead of merging it. How to do that? Is there anything benifits/diff for doing that, compared with "merging"? |
Sorry, something went wrong.
|
@Maledong See https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#technical-howto for our process. There's an optional step to get things merged rather than closed. Most of us skip that step. |
Sorry, something went wrong.
|
OK, Thanks for all of your patience! |
Sorry, something went wrong.
In short: `ServerResponse` acutally inherits from `OutgoingMessage`, with a series of methods like those in `Stream.Writable`. So we cannot use `implements`(this has made poeple feel puzzled because there are still many methods we don't need or have), so `inherits from Stream` is enough, due to some core reasons and performance told by mcollina from the ref (See some latest discussions at Ref). Ref: #14146. PR-URL: #22305 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
In short: `ServerResponse` acutally inherits from `OutgoingMessage`, with a series of methods like those in `Stream.Writable`. So we cannot use `implements`(this has made poeple feel puzzled because there are still many methods we don't need or have), so `inherits from Stream` is enough, due to some core reasons and performance told by mcollina from the ref (See some latest discussions at Ref). Ref: #14146. PR-URL: #22305 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
Ref: #14146.
In short: ServerResponse acutally inherits from OutgoingMessage,
with a series of methods like those in Stream.Writable. So we cannot
use implements(this has made poeple feel puzzled because there are
still many methods we don't need or have), so inherits from Stream is enough,
due to some core reasons and performance told by mcollina from the ref
(See some latest discussions at Ref).