Spaces:
Sleeping
Sleeping
Download src/interfaces/commons/IPostRequest.ts from lamsaoganh/teamta: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/commons/IPostRequest.ts
- Command line
-
hf download hf://spaces/lamsaoganh/teamta/src/interfaces/commons/IPostRequest.ts
-
curl -L -o IPostRequest.ts https://huggingface.co/spaces/lamsaoganh/teamta/resolve/main/src/interfaces/commons/IPostRequest.ts
364 Bytes
| export interface IPostRequestParams { | |
| url: string; | |
| body?: any; // dữ liệu gửi kèm (JSON, FormData, v.v.) | |
| params?: Record<string, any>; | |
| headers?: Record<string, string>; | |
| timeout?: number; | |
| responseType?: "json" | "blob" | "text" | "arraybuffer"; | |
| } | |
| export interface IPostRequest { | |
| post<T>(options: IPostRequestParams): Promise<T>; | |
| } | |