Skip to content

ming-codes/koa-http-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-http-proxy

Build Status

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published