Thursday, 15 July 2010

node.js - Express.JS with my own HTTP listener? -


I have my own HTTP listeners, which then do the serial request, send it to another process that deserializes And between I / O, node. For the protection of the JS HTTP request / receiver API.

Is it possible for me to cross vanilla entertainment rick and res to express objects? , allows express to add tasks to your work (such as res.send ), and routing, and middleware?

It seems that this is straight forward to do so has not been tested yet.

  var express = require ('express') var app = express () http_to_stdio.on ('request', app.handle)  

This is to ensure that I am retyping the methods found in the implementation of the req and res of http .


No comments:

Post a Comment