メインコンテンツまでスキップ

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.