Skip to content

HTTP

HTTP request utilities.

1 modules

ModuleDescription
HTTP GETSend HTTP GET request and receive response

Modules

HTTP GET

http.get

Send HTTP GET request and receive response

Parameters:

NameTypeRequiredDefaultDescription
urlstringYes-URL to send the GET request to
headersobjectNo{}Request headers as key-value object
queryobjectNo{}Query string parameters as key-value object
timeoutnumberNo30Request timeout in milliseconds
verify_sslbooleanNoTrueVerify SSL certificates

Output:

FieldTypeDescription
okbooleanWhether request was successful (2xx status)
statusnumberHTTP status code
bodyanyResponse body (parsed JSON or text)
headersobjectResponse headers

Released under the Apache 2.0 License.