Spaces:
Sleeping

teamta / src /interfaces /commons /IHttpClient.ts
lamsaoganh's picture
Upload 62 files
1305386 verified
Raw History Blame Contribute Delete
465 Bytes
/**
* Generic HTTP client interface - không phụ thuộc vào thư viện cụ thể
* Compatible với axios, fetch, got, request, hoặc bất kỳ HTTP client nào
*/
export interface IHttpClient {
/**
* Thực hiện HTTP request
* @param config Request configuration (method, url, headers, timeout, etc.)
* @returns Promise với response có property data
*/
request<T = any>(config: any): Promise<{ data: T }>;
}