0.5.1 • Published 10 years ago

dynamic-reverse-proxy-client v0.5.1

Weekly downloads
17
License
-
Repository
github
Last release
10 years ago

dynamic-reverse-proxy-client

A client to dynamic-reverse-proxy.

Usage

var reverseProxyClient = require("dynamic-reverse-proxy-client");

// This is actually the default, but this would be how to change it.
var proxy = {
   host: "localhost",
   port: "80",
   path: "/routes",
   method: "POST"
};

var application = {
   prefix: "/test",
   port: 4321
};

var client = reverseProxyClient({ application: application, proxy: proxy });

client.on("error", function (reason, willRetry) {
   console.log(reason, (willRetry ? "This request will be retried." : "This request will NOT be retried."));
});

client.on("success", function () {
   console.log("Registered.");
});
0.5.1

10 years ago

0.5.0

11 years ago

0.4.0

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago