Latest 0.0.3
Homepage https://github.com/silpmomo/AFHTTPSessionManager-AutoRetry
License MIT
Platforms ios 7.0
Dependencies AFNetworking
Authors

AFNetworking AutoRetry 3rd-party lib

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the "Getting Started" guide for more information. You can install it with the following command:

    $ gem install cocoapods

To integrate AFHTTPSessionManager-AutoRetry into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'AFHTTPSessionManager-AutoRetry'

Then, run the following command:

pod install

Usage

#import <AFHTTPSessionManager-AutoRetry/AFHTTPSessionManager+AutoRetry.h>
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:@"data",@"key", nil];
AFHTTPSessionManager *sessionManager = [AFHTTPSessionManager manager];
NSInteger autoretryCount = 3;
[sessionManager POST:@"url" parameters:params progress:nil success:^(NSURLSessionDataTask * task, id responseObject) {
//success
} failure:^(NSURLSessionDataTask * task, NSError * error) {
//fail
}autoretry:autoretryCount];

Latest podspec

{
    "name": "AFHTTPSessionManager-AutoRetry",
    "version": "0.0.3",
    "summary": "AFHTTPSessionManager-AutoRetry",
    "homepage": "https://github.com/silpmomo/AFHTTPSessionManager-AutoRetry",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "silpmomo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/silpmomo/AFHTTPSessionManager-AutoRetry.git",
        "tag": "0.0.3"
    },
    "source_files": "AFNeworkingAutoRetry/*.{h,m}",
    "requires_arc": false,
    "platforms": {
        "ios": "7.0"
    },
    "dependencies": {
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This