net.http-server
v0.2.1
Published
A library for creating functionally pure HTTP request handlers.
Downloads
1
Readme
net.http-server
A library for creating functionally pure HTTP request handlers.
Example
var Future = require('data.future');
var create = require('net.http-server');
var handler = create(function(req, res) {
return Future.of(res.status(200).type('txt').send('Hello World!'));
});
http.createServer(handler).listen(9000);
Installing
It's an npm module.
$ npm install net.http-server
Documentation
TODO
License
Copyright © 2014 Tenor Biel
Released under the MIT license.