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.
Cliente HTTP universal que funciona tanto en Node.js como en el navegador
• new HttpClient(): HttpClient
HttpClient
http-client.ts:43
▸ createHeaders(init?): Headers
Crea una nueva instancia de Headers
| Nombre | type | |
|---|
init? | Record<string, string> | Headers |
Headers
http-client.ts:99
▸ request(url, options?): Promise<HttpResponse>
Realiza una solicitud HTTP
| Nombre | Tipo |
|---|
url | string |
options | HttpClientRequestOptions |
Promise<HttpResponse>
http-client.ts:106
▸ get(url, headers?): Promise<HttpResponse>
Realiza una solicitud GET
| Nombre | type |
|---|
url | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:141
▸ post(url, body?, headers?): Promise<HttpResponse>
Realiza una solicitud POST
| Nombre | type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:151
▸ put(url, body?, headers?): Promise<HttpResponse>
Realiza una solicitud PUT
| Nombre | Type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:162
▸ delete(url, headers?): Promise<HttpResponse>
Realiza una solicitud DELETE.
| Nombre | Tipo |
|---|
url | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:173
▸ patch(url, body?, headers?): Promise<HttpResponse>
Realiza una solicitud PATCH
| Nombre | Type |
|---|
url | string |
body? | string |
headers? | Record<string, string> |
Promise<HttpResponse>
http-client.ts:183