Skip to main content

HttpsOptions

This type is used to define the options for https().

PropertyTypeOptionalDefaultDescription
bodyobjectβœ…The body (FOR POST REQUESTS)
endpointstringβœ…Endpoint to request.
headersobjectβœ…{ "Content-Type": "application/json" }Headers to send.
methodstringβœ…GETMethod to use.
responseTypestringβœ…jsonResponse type.
statusCodenumberβœ…Expected status code.
timeoutnumberβœ…5000Timeout in milliseconds.