Latest 1.0.6
Homepage https://github.com/haivy/STNetwork
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Frameworks CFNetwork
Authors
  • 对afnetwork的进一步封装,实现了对请求的统一处理。可以取消单个vc的所有请求。

    安装

  • pod ‘STNetwork’, ‘~> 1.0.6’

    使用方法

  • 自己新建一个请求request类,继承STBaseRequest。request类里面定义一个枚举,来表示所有的请求。可以通过枚举来设置请求的url。
  • 如果返回的是字符串或者需要对返回的数据做统一处理, 可以再自己的request类型里面重写resultStr或resultObjc的set方法。

Latest podspec

{
    "name": "STNetwork",
    "version": "1.0.6",
    "summary": "iOS",
    "homepage": "https://github.com/haivy/STNetwork",
    "description": "network",
    "license": "MIT",
    "authors": {
        "qiang": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/haivy/STNetwork.git",
        "tag": "1.0.6"
    },
    "source_files": "STNetwork/**/*",
    "requires_arc": true,
    "frameworks": "CFNetwork",
    "dependencies": {
        "AFNetworking": [
            "~> 3.0"
        ]
    }
}

Pin It on Pinterest

Share This