Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevva/caw
Construct HTTP/HTTPS agents for tunneling proxies
https://github.com/kevva/caw
http https https-agents nodejs protocol proxy tunnel tunneling-proxies
Last synced: 1 day ago
JSON representation
Construct HTTP/HTTPS agents for tunneling proxies
- Host: GitHub
- URL: https://github.com/kevva/caw
- Owner: kevva
- License: mit
- Created: 2015-07-30T12:50:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T19:35:51.000Z (over 6 years ago)
- Last Synced: 2025-01-17T09:05:57.758Z (9 days ago)
- Topics: http, https, https-agents, nodejs, protocol, proxy, tunnel, tunneling-proxies
- Language: JavaScript
- Size: 18.6 KB
- Stars: 44
- Watchers: 5
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-network-stuff - **37**星
README
# caw [![Build Status](https://travis-ci.org/kevva/caw.svg?branch=master)](https://travis-ci.org/kevva/caw)
> Construct HTTP/HTTPS agents for tunneling proxies
## Install
```
$ npm install caw
```## Usage
```js
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`](https://github.com/kevva/get-proxy).
#### options
Type: `Object`
Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/request/tunnel-agent).
##### protocol
Type: `string`
Default: `http`Endpoint protocol.
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)