We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef946a7 commit edd8e2fCopy full SHA for edd8e2f
README.md
@@ -45,6 +45,25 @@ You can easily add a `pass` (stages) into both the pipelines (XXX: ADD API).
45
46
In addition, every stage emits a corresponding event so introspection during the process is always available.
47
48
+#### Setup a stand-alone proxy server with custom server logic
49
+
50
+``` js
51
+var http = require('http'),
52
+ caronte = require('caronte');
53
54
+//
55
+// Create a proxy server with custom application logic
56
57
+var proxy = caronte.createProxyServer({});
58
59
+var server = require('http').createServer(function(req, res) {
60
+ proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
61
+});
62
63
+console.log("listening on port 5050")
64
+server.listen(5050);
65
+```
66
67
### Contributing and Issues
68
69
* Search on Google/Github
0 commit comments