Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.36 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.36 KB

JHHttpClient

CI Status Version License Platform

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, seraphjiang@gmail.com

License

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