I am unable to find sufficient documentation on the request and response objects in Node.js
I know that they are either an instance of or inherit from the http.IncomingMessage object (http://nodejs.org/api/http.html#http_http_incomingmessage). IncomingMessage implements Readable Stream. http://nodejs.org/api/stream.html#stream_class_stream_readable provides some of the methods the request and response objects should then have, but the methods I am looking for such as addListener() are not there.
I looked at this question on stackoverflow Nodejs Request Object Documentation? but could not find more that what I listed in the above paragraph.
I would find it super helpful if:
1) anyone has a link to good documentation for the request and response objects with their callable public methods listed
2) I saw from the question I linked to above that you can view the request object in the node.js shell, but I don't know how to access it since (as far as I know) it is only available when passed as a parameter through a callback method passed to the createServer() method. If I can access the request and response methods in the shell then I can see their contents (including callable methods).
I have just started javascript and node.js so my jargon might be off, particularly regarding callback methods. Any corrections are welcome.
Thanks!
Actually response is an instance of http.ServerResponse. You are correct about request. It is an instance of http.Incoming message. See the node.js docs
You should be able to get all the information you need about methods from there. As for getting request and response in the node shell, I am unsure about that.