Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

folktale/net.http-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A small routing framework for network.http-server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published