Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Client HTTP universel fonctionnant aussi bien dans Node.js que dans les navigateurs
• new HttpClient(): HttpClient
HttpClient
Défini dans
http-client.ts:43
▸ createHeaders(init?): Headers
Crée un nouvel objet Headers
| Nom | type | |
|---|
init? | Record<string, string> | Headers |
Headers
Défini dans
http-client.ts:99
▸ request(url, options?): Promise<HttpResponse>
Effectue une requête HTTP
Promise<HttpResponse>
Défini dans
http-client.ts:106
▸ get(url, headers?): Promise<HttpResponse>
Effectuer une requête GET
| Nom | Type |
|---|
url | string |
headers? | Record<string, string> |
Promise<HttpResponse>
Défini dans
http-client.ts:141
▸ post(url, body?, headers?): Promise<HttpResponse>
Effectue une requête POST.
| Nom | Type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
Défini dans
http-client.ts:151
▸ put(url, body?, headers?): Promise<HttpResponse>
Envoie une requête PUT
| Nom | Type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
Défini dans
http-client.ts:162
▸ delete(url, headers?): Promise<HttpResponse>
Envoie une requête DELETE
| Nom | Type |
|---|
url | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:173
▸ patch(url, body?, headers?): Promise<HttpResponse>
Effectuer une requête PATCH
| Nom | Type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
Défini dans
http-client.ts:183