Update README.md
This commit is contained in:
parent
a091868c78
commit
bb96b1b201
12
README.md
12
README.md
|
@ -80,7 +80,7 @@ Arguments:
|
||||||
- `--days`: number of days for which to grab the program (default: 1)
|
- `--days`: number of days for which to grab the program (default: 1)
|
||||||
- `--delay`: delay between requests (default: 3000)
|
- `--delay`: delay between requests (default: 3000)
|
||||||
- `--timeout`: set a timeout for each request (default: 5000)
|
- `--timeout`: set a timeout for each request (default: 5000)
|
||||||
- `--cache-max-age`: maximum time for storing each request in milliseconds (default: 0)
|
- `--cache-ttl`: maximum time for storing each request in milliseconds (default: 0)
|
||||||
- `--gzip`: compress the output (default: false)
|
- `--gzip`: compress the output (default: false)
|
||||||
- `--debug`: enable debug mode (default: false)
|
- `--debug`: enable debug mode (default: false)
|
||||||
- `--curl`: display current request as CURL (default: false)
|
- `--curl`: display current request as CURL (default: false)
|
||||||
|
@ -102,12 +102,8 @@ module.exports = {
|
||||||
|
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
cache: { // cache options (details: https://github.com/RasCarlito/axios-cache-adapter#options)
|
cache: { // cache options (details: https://axios-cache-interceptor.js.org/#/pages/per-request-configuration)
|
||||||
maxAge: 0,
|
ttl: 60 * 1000 // 60s
|
||||||
readHeaders: false,
|
|
||||||
exclude: {
|
|
||||||
query: false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -192,6 +188,8 @@ From each function in `config.js` you can access a `context` object containing t
|
||||||
- `content`: The response data as a String
|
- `content`: The response data as a String
|
||||||
- `buffer`: The response data as an ArrayBuffer
|
- `buffer`: The response data as an ArrayBuffer
|
||||||
- `headers`: The response headers
|
- `headers`: The response headers
|
||||||
|
- `request`: The request config
|
||||||
|
- `cached`: A boolean to check whether this request was cached or not
|
||||||
|
|
||||||
## Channels List
|
## Channels List
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue