On this page
HttpsOptions
This type is used to define the options for https().
| Property | Type | Optional | Default | Description |
|---|---|---|---|---|
| body | object | ✅ | The body (FOR POST REQUESTS) | |
| endpoint | string | ✅ | Endpoint to request. | |
| headers | object | ✅ | { "Content-Type": "application/json" } |
Headers to send. |
| method | string | ✅ | GET |
Method to use. |
| responseType | string | ✅ | json |
Response type. |
| statusCode | number | ✅ | Expected status code. | |
| timeout | number | ✅ | 5000 |
Timeout in milliseconds. |