UNPKG

779 BTypeScriptView Raw
1import { ClientOptions } from "./ClientOptions";
2export declare abstract class HttpClient {
3 /**
4 * Http Client connection configuration options.
5 * You may modify these values and new clients will use them.
6 * Any values provided to a Client constructor will override default options.
7 */
8 static DefaultOptions: ClientOptions.Configuration;
9 clientOptions: ClientOptions.Configuration;
10 client: any;
11 protected constructor(configOptions?: ClientOptions.Configuration);
12 getBaseHttpRequestURL(): string;
13 abstract initHttpClient(configOptions?: ClientOptions.Configuration): void;
14 abstract httpRequest<T>(method: ClientOptions.HttpMethod, path: string, queryParameters: ({} | object), body: (null | object), headers: any): Promise<T>;
15}