legendary-doc-site/apps/core/assets/node_modules/caw
2020-07-03 21:41:01 -05:00
..
index.js chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
license chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
package.json chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00
readme.md chore: Convert to umbrella app 2020-07-03 21:41:01 -05:00

caw Build Status

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