@openade/fe
Version:
Fatturazione Elettronica - Electronic Invoicing for Sistema di Interscambio (SDI)
19 lines • 751 B
TypeScript
export declare class HttpService {
request<T = any>(config: {
url: string;
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
headers?: Record<string, string>;
body?: any;
timeout?: number;
retries?: number;
}): Promise<{
data: T;
status: number;
headers: Record<string, string>;
}>;
get<T = any>(url: string, headers?: Record<string, string>): Promise<T>;
post<T = any>(url: string, body?: any, headers?: Record<string, string>): Promise<T>;
put<T = any>(url: string, body?: any, headers?: Record<string, string>): Promise<T>;
delete<T = any>(url: string, headers?: Record<string, string>): Promise<T>;
}
//# sourceMappingURL=http.service.d.ts.map