caw

Construct HTTP/HTTPS agents for tunneling proxies

MIT 7 个版本
安装
npm install caw
yarn add caw
pnpm add caw
bun add caw
README

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

版本列表
2.0.1 2017-07-20
2.0.0 2016-05-21
1.2.0 2015-12-07
1.1.0 2015-08-04
1.0.2 2015-08-03
1.0.1 2015-07-31
1.0.0 2015-07-31