Skip to content

Commit

Permalink
ENH: updated readme with an example
Browse files Browse the repository at this point in the history
  • Loading branch information
srossross committed Sep 16, 2013
1 parent ef946a7 commit edd8e2f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@ You can easily add a `pass` (stages) into both the pipelines (XXX: ADD API).

In addition, every stage emits a corresponding event so introspection during the process is always available.

#### Setup a stand-alone proxy server with custom server logic

``` js
var http = require('http'),
caronte = require('caronte');

//
// Create a proxy server with custom application logic
//
var proxy = caronte.createProxyServer({});

var server = require('http').createServer(function(req, res) {
proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
});

console.log("listening on port 5050")
server.listen(5050);
```

### Contributing and Issues

* Search on Google/Github
Expand Down

0 comments on commit edd8e2f

Please sign in to comment.