prescription-http-server
v0.1.0
Published
A http wrapper for Prescription the FRP library
Downloads
3
Readme
Prescription Http Server
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);
});