sn

server-node

Ready to use web-server for Node.js with cool features.

Showing:

Readme

ServerNode

#Warning! Unstable

Ready to use web-server for Node.js with cool features.

#Usage:

###Sample:

var ServerNode = require('server-node'),
    server = new ServerNode();

server.start();

var myApi = new ServerNode.API();

myApi.on('get', function (data) {
    data.response.writeHead(200);
    data.response.write('Hello world!\n');
    data.response.end();
});

server.api.register('myApi', myApi);

###Result:

GET: http://localhost/myApi

// Hello world!