Spaces:
Sleeping
Sleeping
Download src/interfaces/commons/IHttpClient.ts from lamsaoganh/teamta: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/commons/IHttpClient.ts
- Command line
-
hf download hf://spaces/lamsaoganh/teamta/src/interfaces/commons/IHttpClient.ts
-
curl -L -o IHttpClient.ts https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/commons/IHttpClient.ts
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 }>; | |
| } | |