UNPKG

@owlnext/heimdall-js-native

Version:

Heimdall API client & utils for react native technologies

22 lines (21 loc) 590 B
import { AxiosResponse } from "axios"; interface RequestPayload { method: string; uri: string; query_params?: {} | null; body?: {} | null; jwt_token?: string | null; } export default class HttpClient { private _config; private _fingerprintUtils; private _fingerprint; private _server_environment; constructor(); setServerEnvironment: (server_env: string) => void; doRequest: (props: RequestPayload) => Promise<AxiosResponse<any>>; private getAPIEntrypoint; private generateSecurityHeader; private makeHeimdallHeader; } export {};