Latest 1.0.2
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking, MBProgressHUD-TFExtension
Frameworks CFNetwork, Security

License MIT
Pod version
Carthage Compatible
Platform info
Build Status


TFNetworking is a high level request util based on AFNetworking. It’s developed by the iOS Team of Dabay. It provides a High Level API for network request.TFNetworking is used in all products of Dabay.


  • Response can be cached by expiration time
  • Response can be cached by version number
  • Set common base URL and CDN URL
  • Validate JSON response
  • Resume download
  • block and delegate callback
  • URL filter, replace part of URL, or append common parameter 
  • Plugin mechanism, handle request start and finish. A plugin for show "Loading" HUD is provided


TFNetworking is suitable for a slightly more complex project, not for a simple personal project.

TFNetworking is helpful if you want to cache requests, manage the dependences of requests, or validate the JSON response. And if you want to cache requests based on request version, this is one of the greatest advantages of TFNetworking.


TFNetworking provides YTKRequest to handle every network request. You should inherit it and override some methods to define custom requests in your project.

The main idea is use the Command Pattern. The benefits are:

  • Your code is decoupled to detail network request framework, it’s easy to replace it. Actually, TFNetworking is originally based on ASIHttpRequest, we just spent two days to switch to AFNetworking.
  • Handle common logic in base class.
  • Easier Persistence

But TFNetworking is not suitable if your project is very simple. You can use AFNetworking directly in controller.


To use TFNetworking add the following to your Podfile

pod 'TFNetworking'

Or add this in your Cartfile:

github "Donkey-Tao/TFNetworking" ~> 0.0.6


TFNetworking is based on AFNetworking. You can find more detail about version compability at AFNetworking README.

Guide & Demo


  • [AFNetworking]
  • [AFDownloadRequestOperation]

Thanks for their great work.


TFNetworking is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "TFNetworking",
    "version": "1.0.2",
    "summary": "Dabay tech : TFNetworking is a high level request util based on AFNetworking.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Tao Fei": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "1.0.2"
    "source_files": "TFNetworking/**/*.{h,m}",
    "frameworks": [
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        "MBProgressHUD-TFExtension": [
            "~> 1.1.0"

Pin It on Pinterest

Share This