HttpsOptions
Ce type définit les options pour https().
| Propriété | Type | Optionnel | Défaut | Description |
|---|---|---|---|---|
| body | object | ✅ | Corps de la requête (POST) à envoyer | |
| endpoint | string | ✅ | URL de l'endpoint à appeler | |
| headers | object | ✅ | { "Content-Type": "application/json" } | En-têtes HTTP à inclure dans la requête |
| method | string | ✅ | GET | Méthode HTTP utilisée (GET, POST, etc.) |
| responseType | string | ✅ | json | Format attendu pour la réponse (json, text) |
| statusCode | number | ✅ | Code de statut HTTP attendu | |
| timeout | number | ✅ | 5000 | Délai d'attente avant expiration (ms) |