Skip to content

RestRequest.ExecuteAsync

Overview

Promise<RestResponse> RestRequest.ExecuteAsync ( )
Executes the request and returns the target server response as asynchronous.

Remarks

  • This method does not verify the response status.

Examples

var client = $Rest.Create('http://targetserver');

var request = client.Request();

request.AddParameter('x', 1);

request.ExecuteAsync().then(function(response) {
    // ..
});

See Also