AFHTTPSessionManager-AFUniqueGET for iOS

Download Source

Your GET request is in progress, then you make a new one asking for the same resource, better reuse it than creating a new one, right?

This category adds the uniqueGET method to AFHTTPSessionManager, which is useful if you want to avoid making multiple calls at the same resource if the operation is still in progress. A common request between AFNetworking users.

We achieve this by checking ongoing operations before creating new ones.

Sponsored with ❤️ by Instabug
Why do mobile-first companies choose Instabug over Crashlytics
Instabug

Instabug helps you identify and resolve severe crashes quickly. You can retrace in-app events and know exactly which line of code caused the crash along with environment details, network logs, repro steps, and the session profiler. Ask more questions or keep users up-to-date with in-app replies straight from your dashboard. We take data privacy seriously, so no one sees your data but you!