Skip to content

Instantly share code, notes, and snippets.

@Marak
Created March 30, 2010 00:24
Show Gist options
  • Save Marak/348604 to your computer and use it in GitHub Desktop.
Save Marak/348604 to your computer and use it in GitHub Desktop.
httpServer = http.createServer(function(request, response) {
request.body = '';
request.addListener('data', function(chunk) {
request.body = request.body + chunk;
});
request.addListener('end', function() {
hookIO.emit('HttpRequest', request, response);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment