True
for asynchronous request (default) or false
otherwise.
Normally AW.HTTP.Request makes asynchronous calls and returns results after some delay in response() callback. Setting async
to false
makes a synchronous request and the request() method does not return until the result is received and the response() method is called.
var value = obj.getAsync();
obj.setAsync(value);
var req = new AW.HTTP.Request;
req.setURL('<url>');
req.setAsync(false); // make synchronous request
req.request();
alert(req.getResponseText());