Upload files to "/"
This commit is contained in:
commit
1fa6d558c7
149 changed files with 27987 additions and 0 deletions
27
dist/modules/http/index.d.ts
vendored
Normal file
27
dist/modules/http/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* @file src/modules/http/index.ts
|
||||
* @version 2.1.0
|
||||
* @since 2.0.0
|
||||
* @license GPL-3.0-or-later
|
||||
* @copyright Sven Minio 2026
|
||||
* @author Sven Minio <https://sven-minio.de>
|
||||
* @category HTTP
|
||||
* @description
|
||||
* * Central entry point for HTTP requests. Aggregates GET and POST methods.
|
||||
* @requires ./get
|
||||
* * HTTP GET methods (get, getText).
|
||||
* @requires ./post
|
||||
* * HTTP POST methods.
|
||||
* @requires ./upload
|
||||
* * HTTP file upload method with progress tracking.
|
||||
*/
|
||||
/**
|
||||
* * The central HTTP client of the framework. Aggregates all HTTP methods (GET, POST, etc.) into a unified interface. Acts as a wrapper around the native `fetch` API to simplify JSON parsing, error handling, and typing.
|
||||
*/
|
||||
export declare const http: {
|
||||
upload<T>(url: string, data: FormData | File, onProgress?: (percentage: number, loaded: number, total: number) => void): Promise<T>;
|
||||
post<T>(url: string, body?: any, option?: RequestInit): Promise<T>;
|
||||
get<T>(url: string, option?: RequestInit): Promise<T>;
|
||||
getText<T = string>(url: string, option?: RequestInit): Promise<T>;
|
||||
};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue