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. |