caw ![Build Status](https://camo.githubusercontent.com/f3014f38deb799180be6fcf886339647977fa8ad91d8df0e5e03bcd6b40a75f9/68747470733a2f2f7472617669732d63692e6f72672f6b657676612f6361772e7376673f6272616e63683d6d6173746572)
Construct HTTP/HTTPS agents for tunneling proxies
Install
$ npm install caw
Usage
const caw = require('caw');
const got = require('got');
got('todomvc.com', {
agent: caw()
}, () => {});
API
caw([proxy], [options])
proxy
Type: string
Proxy URL. If not set, it'll try getting it using get-proxy
.
options
Type: Object
Besides the options below, you can pass in options allowed in tunnel-agent.
protocol
Type: string
Default: http
Endpoint protocol.
License
MIT © Kevin Mårtensson