https://github.com/ming-codes/koa-http-proxy
https://github.com/ming-codes/koa-http-proxy
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ming-codes/koa-http-proxy
- Owner: ming-codes
- Created: 2014-05-07T05:48:17.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T01:06:55.000Z (over 9 years ago)
- Last Synced: 2023-03-12T22:25:27.094Z (over 3 years ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# koa-http-proxy
[](https://travis-ci.org/ming-codes/koa-http-proxy)
koajs wrapper over nodejitsu's node-http-proxy.
## Installation
```bash
$ 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](https://github.com/nodejitsu/node-http-proxy#options) for full list of
accepted options.
## Example
```js
var koa = require('koa')
var $proxy = require('koa-http-proxy')
koa()
.use($proxy('https://www.google.com'))
.listen(3000)
```
## License
MIT