Nautical Pace Marker

    net.http-server

    0.2.1 • Public • Published

    net.http-server Build Status NPM Version License devDependencies

    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.

    Install

    npm i net.http-server

    DownloadsWeekly Downloads

    1

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • l8d