1.2.2 • Published 2 years ago
kkk-agent v1.2.2
kkk-agent
based on superagent, load balance and log format.
Features
- log
- get
- post
- load balance
Example
const Agent = require('./index');
(async () => {
let resp = await (
Agent
.get({}, 'https://www.baidu.com/')
.set('user-agent', 'Chrome')
);
console.log(resp.text);
})();