why is the first argument to an http.Server's upgrade event listener called response?
Affected URL(s)
https://nodejs.org/api/http.html#event-upgrade
Description of the problem
The first argument passed to listeners on the 'upgrade' event on an http.Server is called response in the docs, even though to my understanding it contains the client request (i.e. http.IncomingMessage).
Would you like to send a PR to improve the documentation?
Hey, I'll send a PR this evening.
The documentation is correct. The linked 'upgrade' event is the one received on the client. The listener takes the server response.
Looks like I mixed up the two different upgrade events. In that case, this issue is obsolete. Sorry for the confusion and thanks Ipinca for clearing this up.