network.http-router
v0.0.2
Published
A small routing framework for network.http-server.
Downloads
2
Readme
network.http-router
A small routing framework for network.http-server.
Example
var Future = require('data.future');
var router = require('network.http-router');
var nhttp = require('network.http-server');
var http = require('http');
var app = router();
app = app.use('/', function(req, res) {
return Future.of(req.set('body', 'Hello World'));
});
http.createServer(nhttp(app)).listen(9000);
Documentation
TODO
License
Copyright © 2014 Tenor Biel
Released under the MIT license.