prescription-http-server

A http wrapper for Prescription the FRP library

npm install prescription-http-server
2 downloads in the last week
4 downloads in the last month

Prescription Http Server

Dependencies

Prescription FRP wrapper for creating http servers.

Example

Hello world:

var HttpServer = require("prescription-http-server");
var Observable = require("prescription").Observable;
var server     = new HttpServer();

server.listen(3000).requests.subscribe(function(pair) {
    Observable.returnValue("Hello World!").subscribe(pair.response);
});
npm loves you