koa-proxies and rewrited!
Koa Proxies with router config - Forked fromKoa@2.x/next middlware for http proxy
Add router config like http-proxy-middleware
Powered by http-proxies
/ http-proxy-middleware
Installation
$ npm install koa-proxies-router --save
Options
http-proxy events
optionsevents = {} {} {}
log option
// enable logoptionslogs = true; // or false // custom log functionoptionslogs = ctx target console
Usage
// dependenciesconst Koa = const proxy = const httpsProxyAgent = const app = // middlewareapp