mirror of https://github.com/certd/certd
chore:
parent
96677ff8bf
commit
bb80bc0c07
|
@ -1,6 +1,5 @@
|
||||||
import axios, { AxiosHeaders, AxiosRequestConfig } from "axios";
|
import axios, { AxiosHeaders, AxiosRequestConfig } from "axios";
|
||||||
import { ILogger, logger } from "./util.log.js";
|
import { ILogger, logger } from "./util.log.js";
|
||||||
import { Logger } from "log4js";
|
|
||||||
import { HttpProxyAgent } from "http-proxy-agent";
|
import { HttpProxyAgent } from "http-proxy-agent";
|
||||||
import { HttpsProxyAgent } from "https-proxy-agent";
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
||||||
import nodeHttp from "http";
|
import nodeHttp from "http";
|
||||||
|
@ -84,7 +83,7 @@ export function getGlobalAgents() {
|
||||||
/**
|
/**
|
||||||
* @description 创建请求实例
|
* @description 创建请求实例
|
||||||
*/
|
*/
|
||||||
export function createAxiosService({ logger }: { logger: Logger }) {
|
export function createAxiosService({ logger }: { logger: ILogger }) {
|
||||||
// 创建一个 axios 实例
|
// 创建一个 axios 实例
|
||||||
const service = axios.create();
|
const service = axios.create();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue