Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Cannot detect that GET request has been canceled #29

Open
ir-fuel opened this issue Mar 25, 2012 · 1 comment
Open

Cannot detect that GET request has been canceled #29

ir-fuel opened this issue Mar 25, 2012 · 1 comment

Comments

@ir-fuel
Copy link

ir-fuel commented Mar 25, 2012

From my understanding if I call cancel on a LRRestyRequest it stops the NSURLConnection and calls finish, which in turn calls the completion block. However there is no way of knowing in my completion block that the request actually got canceled.

I would think that when canceling a long GET or POST operation the completion block either:

  • should not be called (after all we explicitly force a cancel)
  • should be called but it should have a way of doing that it is called because of a cancel and not because of a finish

What do you think?

@leftspin
Copy link

You could record that it was cancelled yourself when you actually cancel it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants