Latest 1.0.0
Homepage https://github.com/hongruqi/WTNetworking
License MIT
Platforms ios 8.0
Dependencies AFNetworking, WTCoreData, YYModel
Authors

Requirements

IOS 8 or later , XCode 7 or later

Installation

pod ‘WTNetworking’

架构图
WTNetworking.jpg

主要类

WTRequest

  1. 网络请求基类,上层request需要继承这个类
  2. 请求前会判断是否使用缓存,如果使用缓存,直接返回缓存数据,同事发送网络请求,请求回来后,跟新缓存数据
  3. 包含cancel接口,可以cancel请求。

WTCache

  1. 数据库缓存
  2. 内存缓存

WTSessionManager

  1. 封装AFNetworking接口

Latest podspec

{
    "name": "WTNetworking",
    "version": "1.0.0",
    "summary": "WTNetworking is network feature set",
    "description": "WTNetworking is network feature set.",
    "homepage": "https://github.com/hongruqi/WTNetworking",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lbrsilva-allin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hongruqi/WTNetworking.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "WTNetworking/Classes/**/*",
    "dependencies": {
        "AFNetworking": [],
        "WTCoreData": [],
        "YYModel": []
    }
}

Pin It on Pinterest

Share This