ios - avoid duplicate HTTP requests with AFNetworking -


i find out if it's possible avoid duplicate http requests afnetworking. specifically, app may generate multiple http requests have same url. prevent afnetworking processing duplicates of same url.

im not sure if can done in afnetworking or underlying ios sdk. understand manually keep trac of pending url request , avoid duplicates way, wondering if there lower level functionality available take care of this.

thanks.

i made category checks in-progress requests before making new ones.

https://github.com/nselvis/afhttpsessionmanager-afuniqueget

it using method gettaskswithcompletionhandler of session.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -