massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / request-light / lib / node / main.d.ts
1 export interface XHROptions {
2     type?: string;
3     url?: string;
4     user?: string;
5     password?: string;
6     headers?: any;
7     timeout?: number;
8     data?: any;
9     agent?: any;
10     strictSSL?: boolean;
11     responseType?: string;
12     followRedirects?: number;
13 }
14 export interface XHRResponse {
15     responseText: string;
16     status: number;
17     headers: any;
18 }
19 export interface XHRRequest {
20     (options: XHROptions): Promise<XHRResponse>;
21 }
22 export declare function configure(_proxyUrl: string, _strictSSL: boolean): void;
23 export declare function xhr(options: XHROptions): Promise<XHRResponse>;
24 export declare function getErrorStatusDescription(status: number): string;