You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
I have a net.Server listening and on 'data' emit, depending on the contents of the buffer, I may want to emulate a 'request' event passing IncomingMessage and ServerResponse instances. Looking at the node source lib sub directory, it looks like there's no sanctioned way to create the IncomingMessage from userland. If I could, then creating a ServerResponse would be trivial since it can be constructed from the request.
Is there some way to create an IncomingMessage instance from a Buffer that I'm missing?
Dmitry Unkovsky
unread,
Aug 29, 2013, 9:12:00 AM8/29/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
Not that easy, but you could do something like what
parserOnHeadersComplete does in _http_common.js together with
connectionListener in _http_server.js. If you're really into it.