diff --git a/README.md b/README.md index fa3cc50..de8bde7 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,32 @@ sget.concat({ // handle the response }) ``` +### [axios](https://github.com/axios/axios) + +```js +axios.get( + 'http://localhost:9200', + { + httpsAgent: new HttpsProxyAgent({ + keepAlive: true, + keepAliveMsecs: 1000, + maxSockets: 256, + maxFreeSockets: 256, + proxy: 'http://localhost:8080' + }) + } +) +.then( + res => console.log(res.data) +) +.catch( + e => console.log(e) +) +.finally( + () => console.log('Request through proxy completed') + +); +``` ## License