UNPKG

@chustasoft/cs-common

Version:

Common utilities for JavaScript projects equivalents to ChustaSoft CommonNET project

10 lines (9 loc) 613 B
import { BasicAuthentication, JwtAuthentication } from ".."; export declare class HttpService { get<TRespose>(url: string, authData?: JwtAuthentication | BasicAuthentication): Promise<TRespose>; post<TBody, TRespose>(url: string, body: TBody, authData?: JwtAuthentication | BasicAuthentication): Promise<TRespose>; put<TBody, TRespose>(url: string, body: TBody, authData?: JwtAuthentication | BasicAuthentication): Promise<TRespose>; delete<TResponse>(url: string, authData?: JwtAuthentication | BasicAuthentication): Promise<TResponse>; private performUrlCall; private performBodyCall; }