Latest | 0.5.1 |
---|---|
Homepage | https://github.com/NSElvis/AFHTTPSessionManager-AFUniqueGET |
License | MIT |
Platforms | ios 7.0, requires ARC |
Dependencies | AFNetworking |
Authors |
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 (for example #499, #1460).
We achieve this by checking on-going operations before creating new ones.
Usage
Installation
AFHTTPSessionManager-AFUniqueGET is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'AFHTTPSessionManager-AFUniqueGET'
API
- (void)uniqueGET:(NSString *)URLString
parameters:(id)parameters
task:(void (^)(NSURLSessionDataTask *task, BOOL existing))task
success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
Author
Elvis Nuñez, [email protected]
License
AFHTTPSessionManager-AFUniqueGET is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "AFHTTPSessionManager-AFUniqueGET", "version": "0.5.1", "summary": "Your GET request is in progress, better reuse it than create a new one, right?", "description": "This category of AFHTTPSessionManager adds the `uniqueGET` method, which is useful if you want to avoid making multiple calls at the same resource if the operation is still in progress.nnWe achieve this by checking on-going operations before creating new ones.n", "homepage": "https://github.com/NSElvis/AFHTTPSessionManager-AFUniqueGET", "license": "MIT", "authors": { "Elvis Nuu00f1ez": "[email protected]" }, "source": { "git": "https://github.com/NSElvis/AFHTTPSessionManager-AFUniqueGET.git", "tag": "0.5.1" }, "social_media_url": "https://twitter.com/NSElvis", "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Source/**/*", "dependencies": { "AFNetworking": [] } }
Sat, 27 Feb 2016 10:13:03 +0000