To run the example project, clone the repo, and run pod install
from the Example directory first.
JHHttpClient is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JHHttpClient"
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
}
}
jianghuan, seraphjiang@gmail.com
JHHttpClient is available under the MIT license. See the LICENSE file for more info.