fire-proxy
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Fire Proxy

fire-proxy is a nodejs module for HTTP proxy library for Express JS. It using request to steam incoming request to the destination server.

Install

$ npm install --save fire-proxy

Example

const app = express();
const fireProxy = require("fire-proxy");
app.use("./api", fireProxy({
    target: "http://www.google.com.hk" // and other options
}));

Options

  • target - the target URL you want to forward to
  • timeout - integer containing the number of milliseconds to wait for a server to send response headers (and start the response body) before aborting the request. For more detail, click here
  • maxRedirects - the maximum number of redirects to follow, For more detail, click here

TODO:

  • more request option
  • better documentation
  • handle cookies

Readme

Keywords

Package Sidebar

Install

npm i fire-proxy

Weekly Downloads

18

Version

2.0.3

License

ISC

Unpacked Size

11.1 kB

Total Files

11

Last publish

Collaborators

  • ken20206