AFHTTPSessionManager-AFUniqueGET

MIT License
Objective-C
iOS

1 image

Author

Description

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.

Tags