http icon indicating copy to clipboard operation
http copied to clipboard

How can I cancel the ongoning request?

Open MohsinIkram777 opened this issue 1 year ago • 1 comments

Suppose I called the api and API is running then at the same time I want to click on the other button now I want, the first API should be cancelled and the same new API call could be trigger? Can you please tell me how can I do this? Although DIO package mentioned this in its documentation But I have not found in the Http documentations.

MohsinIkram777 avatar Jul 31 '24 07:07 MohsinIkram777

It's currently not supported, see https://github.com/dart-lang/http/issues/424

davidmigloz avatar Oct 09 '24 13:10 davidmigloz