JHHttpClient 0.0.4

JHHttpClient 0.0.4

测试测试
Lang语言 SwiftSwift
许可证 MIT
释放上次发布2016年5月
SPM支持SPM

Huan Jiang负责维护。



 
依赖
Alamofire>= 0
EVReflection>= 0
AlamofireJsonToObjects>= 0
 

  • 作者:
  • jianghuan

JHHttpClient

示例

要运行示例项目,请克隆仓库,然后首先从Example目录运行pod install

要求

安装

JHHttpClient可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中

pod "JHHttpClient"

说明

请将条目添加到项目的info.plist中,启用App Transport Security设置中的http://

JHHttpClient.invoke(self.api.text!) { (response, error) in
    print(response)
    if let jsonResult = response as? Dictionary<String, AnyObject> {
        print(jsonResult)
        print("-----")
        print(jsonResult.description)
        let str = jsonResult.description
        self.response.text = str
    }
}

作者

jianghuan, [email protected]

许可证

JHHttpClient受MIT许可证的保护。有关更多信息,请参阅LICENSE文件。