README
Pipeflow is a free and open source platform to build the next generation of web and mobile apps
Developer Preview
Pipeflow is in Developer Preview and is not ready for production purpose yet.
Http server middleware
This middleware allows developers to run an http server and handle requests.
Installation
To install Pipeflow-http from node package manager (npm) repository use following command
$ npm install pipeflow-http
Example
The following example run a simple http server.
var pipeflow = require('pipeflow'),
http = require('pipeflow-http'),
Text = require('pipeflow-http/stream/text');
var app = pipeflow(http.listen)
.pipe((next, stream) => {
if (stream.url() === '/hello') {
return next(Text('hello world!'));
}
next(stream);
});
app.start();
Now open your favorite web browser and type http://localhost:9090/hello on the address bar.