Nurturing Pluto's Martians
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    prescription-http-serverpublic

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

    Keywords

    none

    install

    npm i prescription-http-server

    Downloadsweekly downloads

    4

    version

    0.1.0

    license

    none

    last publish

    collaborators

    • avatar