prescription-http-server

A http wrapper for Prescription the FRP library

Prescription Http Server

Prescription FRP wrapper for creating http servers.

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);
});