network.http-router

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i network.http-router

Weekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • l8d