@c8y/client
Version:
Client application programming interface to access the Cumulocity IoT-Platform REST services.
21 lines • 951 B
TypeScript
import { IFetchClient } from './IFetchClient.js';
import { IFetchOptions } from './IFetchOptions.js';
import { IFetchResponse } from './IFetchResponse.js';
import { IAuthentication } from './IAuthentication.js';
export declare class FetchClient implements IFetchClient {
baseUrl?: string;
tenant: string;
defaultHeaders: {};
defaultFetchOptions: IFetchOptions;
constructor(authOrBaseUrl?: IAuthentication | string, baseUrl?: string);
setAuth(auth: IAuthentication): void;
performLogoutOnCurrentAuthStrategy(): void | Promise<any>;
authIsInstanceOf(authClass: any): boolean;
fetch(url: string, init?: IFetchOptions): Promise<IFetchResponse>;
getUrl(url?: string, options?: IFetchOptions): string;
getFetchOptions(options?: IFetchOptions): IFetchOptions;
getCometdHandshake(config?: any): any;
private resolveServerUrl;
private adjustOptionsForFormData;
}
//# sourceMappingURL=FetchClient.d.ts.map