You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
870 B
22 lines
870 B
import Core, { Config, SendFail, SendOption, SendSuccess, SpeedLog } from "../../core/src";
|
|
export interface LiteConfig extends Config {
|
|
reportApiSpeed?: boolean;
|
|
beforeReportSpeed?: (log: SpeedLog) => boolean;
|
|
useStore?: boolean;
|
|
}
|
|
export default class Aegis extends Core {
|
|
static sessionID: string;
|
|
originRequest: (opts: import("./util").OriginRequestReq) => Promise<import("./util").OriginRequestResp>;
|
|
speedLogPipeline: import("../../core/src").Pipeline<any, any>;
|
|
constructor(config: LiteConfig);
|
|
request: (options: SendOption, success?: SendSuccess | undefined, fail?: SendFail | undefined) => void;
|
|
/**
|
|
* 构造请求参数
|
|
* @param url
|
|
* @param options
|
|
* @returns requestOptions
|
|
*/
|
|
private genRequestParams;
|
|
uploadLogs(params?: any, conds?: any): void;
|
|
private rewriteNormalLogPipeline;
|
|
}
|
|
|