javascript - What events do http.IncomingMessage implement nodejs -
i have been looking nodejs , wondering how post requests. had online , found if used 'data' event on request post requests. don't know whether documentation has changed on events section of api has 'close' event.
does 'data' event still work , if why isn't in documentation?
thanks answers!
does 'data' event still work , if why isn't in documentation?
yeah, it'll work. and, documented, it's inherited behavior.
it implements readable stream interface, following additional events, methods, , properties.
events documented class implements them, 'close'
documented http.incomingmessage
while 'data'
, 'end'
, etc. documented under stream.readable
.
Comments
Post a Comment