Spaces:
Sleeping
Sleeping
File size: 465 Bytes
1305386 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | /**
* 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 }>;
}
|