HTTP IsRequestPending

Only one http request at a time is allowed so check if one is already pending.
;Usage
HTTP.IsRequestPending() = true/false
Parameter	Type	Description
;Return Values
Value 	Type 	Description
Result	boolean	able to use HTTP.IssueRequest()
;Examples:
<nowiki>
function getTweet()
 local url = "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=Red5Studios&count=1";
 
 if not HTTP.IsRequestPending() then
 HTTP.IssueRequest(url, "get", nil, CB_getTweet);
 end
end
function CB_getTweet(args, err)
 if (err) then
 warn(tostring(err));
 else
 -- args is the data in table form, have fun with it
 end
end
</nowiki>
Category:Addon_API