JHHttpClient 0.0.4

JHHttpClient 0.0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by Huan Jiang.



 
Depends on:
Alamofire>= 0
EVReflection>= 0
AlamofireJsonToObjects>= 0
 

  • By
  • jianghuan

JHHttpClient

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JHHttpClient is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JHHttpClient"

Instruction

Please add entry to your project’s info.plist, App Transport Security Settings to enable 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
    }
}

Author

jianghuan, [email protected]

License

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