1 | declare type RequestType = 'xml' | 'json' | 'text' | 'plain' | 'formdata' | undefined;
|
2 | declare type ResponseType = 'text' | 'json' | 'buffer' | undefined;
|
3 | interface ifRequestOption {
|
4 | request_type?: RequestType;
|
5 | respon_type?: ResponseType;
|
6 | respon_head?: boolean;
|
7 | ca_name?: string;
|
8 | }
|
9 | export declare function loadCert(name: string, cert_path: string, key_path: string, passphrase: string): boolean;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare function http_quest<T>(type: 'get' | 'post' | string, url: string, data?: any, retry?: number, headers?: any, _option?: ifRequestOption | string): Promise<T>;
|
21 | export {};
|