AFNetworking+RetryPolicy alternatives and similar libraries
Based on the "Networking" category.
Alternatively, view AFNetworking+RetryPolicy alternatives based on common mentions on social networks and blogs.
-
AFNetworking
A delightful networking framework for iOS, macOS, watchOS, and tvOS. -
CocoaAsyncSocket
Asynchronous socket networking library for Mac and iOS -
RestKit
RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X -
YTKNetwork
YTKNetwork is a high level request util based on AFNetworking. -
Reachability.swift
Replacement for Apple's Reachability re-written in Swift with closures -
ASIHTTPRequest
Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone -
apollo-ios
📱 A strongly-typed, caching GraphQL client for iOS, written in Swift. -
swift-protobuf
Plugin and runtime library for using protobuf with Swift -
RealReachability
We need to observe the REAL reachability of network. That's what RealReachability do. -
Netfox
A lightweight, one line setup, iOS / OSX network debugging library! 🦊 -
MonkeyKing
MonkeyKing helps you to post messages to Chinese Social Networks. -
SwiftHTTP
Thin wrapper around NSURLSession in swift. Simplifies HTTP requests. -
Siesta
The civilized way to write REST API clients for iOS / macOS -
APIKit
Type-safe networking abstraction layer that associates request type with response type. -
ResponseDetective
Sherlock Holmes of the networking layer. :male_detective: -
NetworkEye
a iOS network debug library, monitor HTTP requests -
Networking
Easy HTTP Networking in Swift a NSURLSession wrapper with image caching support -
XMNetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking. -
Overcoat
The perfect accessory for Mantle and AFNetworking. -
protobuf-swift
Google ProtocolBuffers for Apple Swift -
Pitaya
🏇 A Swift HTTP / HTTPS networking library just incidentally execute on machines -
SPTDataLoader
The HTTP library used by the Spotify iOS client -
EVCloudKitDao
Simplified access to Apple's CloudKit -
agent
Minimalistic Swift HTTP request agent for iOS and OS X -
Reach
A simple class to check for internet connection availability in Swift. -
Digger
Digger is a lightweight download framework that requires only one line of code to complete the file download task -
SOAPEngine
This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and AppleTV app. -
TRON
Lightweight network abstraction layer, written on top of Alamofire -
TWRDownloadManager
A modern download manager based on NSURLSession to deal with asynchronous downloading, management and persistence of multiple files. -
Transporter
A tiny library makes uploading and downloading easier -
Malibu
:surfer: Malibu is a networking library built on promises -
Restofire
Restofire is a protocol oriented networking client for Alamofire -
ws ☁️
⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing) -
EVURLCache
a NSURLCache subclass for handling all web requests that use NSURLRequest -
MultiPeer
📱📲 A wrapper for the MultipeerConnectivity framework for automatic offline data transmission between devices -
JSONRPCKit
A JSON-RPC 2.0 library purely written in Swift -
AFNetworking-Synchronous
Synchronous requests for AFNetworking 1.x, 2.x, and 3.x -
ROADFramework
ROAD – Rapid Objective-C Applications Development -
FGRoute
Get your device ip address, router ip or wifi ssid
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of AFNetworking+RetryPolicy or a related project?
README
If a request timed out, you usually have to call that request again by yourself. AFNetworking+RetryPolicy is an objective-c category that adds the ability to set the retry logic for requests made with AFNetworking.
Features
- [x] retryCount - How many times to try.
- [x] retryInterval - Time interval between attempts in seconds.
- [x] progressive - Next attempt will always take more time than the previous one. (Uses Exponentiation)
- [x] fatalStatusCodes - These will trigger failure block immediately when received and ends current retry.
Getting started
- Installing through CocoaPods with
pod 'AFNetworking+RetryPolicy'
- Use
#import "AFHTTPSessionManager+RetryPolicy.h"
directive.
Want to try it first? Use
pod try AFNetworking+RetryPolicy
command.
Usage
Example
- Simple
GET
request with AFNetworking+RetryPolicy could look like this:
AFHTTPSessionManager *manager = [AFHTTPSessionManager new];
[manager GET:@"foo" parameters:nil headers:nil progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSURLSessionDataTask *task, NSError *error) {
NSLog(@"%@", error.localizedDescription);
} retryCount:5 retryInterval:2.0 progressive:false fatalStatusCodes:@[@401, @403]];
Log
- Enable to see what is happening by setting the
AFHTTPSessionManager
’sretryPolicyLogMessagesEnabled
property totrue
. Disabled by default.
Requirements
- AFNetworking 4.0 or later
- Target iOS 9 or later
- Target OS X/macOS 10.10 or later
- Xcode 11 or later
Old versions
For AFNetworking 3 support
- use version 1.x.
For AFNetworking 2 support*
- use branch
afn2-support
. - Installing through CocoaPods with
pod 'AFNetworking+RetryPolicy', git: 'https://github.com/kubatruhlar/AFNetworking-RetryPolicy.git' , branch: 'afn2-support'
*Will not be updated anymore.
For AFNetworking 1 support*
- use branch
afn1-support
. - Installing through CocoaPods with
pod 'AFNetworking+RetryPolicy', git: 'https://github.com/kubatruhlar/AFNetworking-RetryPolicy.git' , branch: 'afn1-support'
*Will not be updated anymore.
Author and credit
- This library is open-sourced and maintained by Jakub Truhlář.
- AFNetworking is owned and maintained by the Alamofire Software Foundation.
License
- Like :+1: AFNetworking, this category is published under the MIT License. See LICENSE.md for details.
*Note that all licence references and agreements mentioned in the AFNetworking+RetryPolicy README section above
are relevant to that project's source code only.