apidash icon indicating copy to clipboard operation
apidash copied to clipboard

Make Cancel-able HTTP Requests

Open ashitaprasad opened this issue 1 year ago • 4 comments

Currently, when you press the Send Button, a request is sent and the UI waits for it to complete. In case no response is sent for a very long time (server might hang), there should be a provision to cancel the request instead of restarting the entire app.

ashitaprasad avatar Jan 14 '24 07:01 ashitaprasad

Hi, may I work on this? @ashitaprasad

yashas-hm avatar Feb 14 '24 17:02 yashas-hm

Sure @yashas-hm Please go ahead and send across a PR for this feature.

ashitaprasad avatar Feb 15 '24 08:02 ashitaprasad

@ashitaprasad Solved Issue in PR #113

yashas-hm avatar Feb 15 '24 13:02 yashas-hm

As @animator said that api dash is not planning to migrate to Dio, Unwired package can be used for cancelling requests. It is built on top of http requests.

If this is go ahead from the maintainers I can work on it.

yashas-hm avatar Mar 28 '24 17:03 yashas-hm