kroxy
HTTP proxy middleware of Koa.
Install
$ npm install --save kroxy
Usage
app
Options
All options are default false.
trustRequestBody
If enabled andcontext.request.body
exists, use it as the body of request.parseResponseBody
If enabled,context.response.body
are parsed intoBuffer
, otherwise stream.
Example
const http = const koa = const kroxy = const app = app // HTTP forward proxy const server = httpserverserver // HTTP tunnel proxy
License
MIT