http
http copied to clipboard
How can I cancel the ongoning request?
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.
It's currently not supported, see https://github.com/dart-lang/http/issues/424