Rate this page:

httpRequest

Copy URL
httpRequest(url: 

string

,
callback:

Function

,
options:

HttpRequestOptions

):

void

Performs a regular HTTP or HTTPS request. To perform an HTTPS request, insert "https://" at the URL's beginning. GET is the default request method. TCP connect timeout is 6 seconds and total request timeout is 90 seconds. Learn more about the limits.

Parameters

  • url:

    string

    HTTP url to query

  • callback:

    Function

    Function to be called on completion. The function receives a response object of type HttpRequestResult as a first argument

  • Optional

    Advanced settings

Returns

  • type:

    void