Galerie und tage
This commit is contained in:
20
node_modules/caw/readme.md
generated
vendored
20
node_modules/caw/readme.md
generated
vendored
@@ -6,41 +6,41 @@
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install caw
|
||||
$ npm install --save caw
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const caw = require('caw');
|
||||
const got = require('got');
|
||||
var caw = require('caw');
|
||||
var got = require('got');
|
||||
|
||||
got('todomvc.com', {
|
||||
agent: caw()
|
||||
}, () => {});
|
||||
}, function () {});
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### caw([proxy], [options])
|
||||
### 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).
|
||||
Proxy URL.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `Object`
|
||||
Type: `object`
|
||||
|
||||
Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/request/tunnel-agent).
|
||||
Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/koichik/node-tunnel).
|
||||
|
||||
##### protocol
|
||||
|
||||
Type: `string`<br>
|
||||
Type: `string`
|
||||
Default: `http`
|
||||
|
||||
Endpoint protocol.
|
||||
@@ -48,4 +48,4 @@ Endpoint protocol.
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Kevin Mårtensson](https://github.com/kevva)
|
||||
MIT © [Kevin Mårtensson](http://github.com/kevva)
|
||||
|
||||
Reference in New Issue
Block a user