req.js 263 B

1234567891011
  1. import _axios from 'axios';
  2. import https from 'https';
  3. import http from 'http';
  4. const req = _axios.create({
  5. httpsAgent: new https.Agent({keepAlive: true, rejectUnauthorized: false}),
  6. httpAgent: new http.Agent({keepAlive: true}),
  7. });
  8. export default req;