Creates the web request for the specified url. The request is in an idle state until the execute API is invoked.
Optionalverb: EnumValue<HTTPRequestVerb, number>OptionalisInternalConstructor: booleanGets the cache duration in seconds. Must be set before calling execute.
Gets the error message.
Determines if the request was loaded for the cache.
Determines if the response data is available.
Determines if the request failed. The failure data is available via errorMessage and statusCode.
Determines if the request is being executed.
Gets or updates an object that can be used for tracking progress of the HTTP request..
Gets the request body.
Returns the buffer holding the request response. Only valid after the request has completed successfully.
Gets the status code.
Executes the web request and returns an async operation. If the request failed, the request contains an error message.
The HTTPRequest class implements an asynchronous HTTP request that is capable of doing both Get and Post.