Muthu
Muthu

Reputation: 357

Destroy the request send to the server in mozilla addon

I first sent a request to the server from Mozilla Addon SDK , but it takes some time t fetch the data and give the response. In the mean time I would make some other request to the server. Now I have to cancel or destroy the previuos request and my current request has to be processed. How would I destroy the earlier request sent to the server.The type of request which i sent can be referred in the following link.Mozilla-Addon-SDK-request

Upvotes: 1

Views: 47

Answers (1)

the8472
the8472

Reputation: 43052

As the page you're have linked suggests, advanced usages should import XMLHttpRequest() from the net/xhr module instead, it has an abort() method

Upvotes: 1

Related Questions