koa-http-proxy

0.0.1 • Public • Published

koa-http-proxy

koajs wrapper over nodejitsu's node-http-proxy.

Installation

$ npm install koa-http-proxy

Options

All options are passed to node-http-proxy, except that if options is passed as a string, it will normalized as options' target.

See node-http-proxy for full list of accepted options.

Example

var koa = require('koa')
 
var $proxy = require('koa-http-proxy')
 
koa()
    .use($proxy('https://www.google.com'))
    .listen(3000)
 

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i koa-http-proxy

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • lightblade