blob: c5ccf0dbe37d2e2a35a913591968d4c4287fc60c [file] [log] [blame]
{
"name": "Cycles",
"version": "0.2.3",
"summary": "HTTP library written in Swift.",
"description": " Cycles is a HTTP library written in Swift, inspired by [AFNetworking](http://afnetworking.com/)\n and [Requests](http://docs.python-requests.org/). The target of Cycles is to\n free you from writing glue code around the NSURLSession classes.\n\n ```\n Cycle.get(\"https://api.github.com/user/\",\n requestProcessors: [BasicAuthProcessor(username: \"user\", password: \"pass\")],\n responseProcessors: [JSONProcessor()],\n completionHandler: { (cycle, error) in\n println(\"(cycle.response.statusCode)\") // 200\n var header = cycle.response.valueForHTTPHeaderField(\"content-type\")\n println(\"(header)\") // application/json; charset=utf-8\n println(\"(cycle.response.textEncoding)\") // 4\n println(\"(cycle.response.text)\") // {\"login\":\"user\",\"id\":3 ...\n println(\"(cycle.response.object)\") // {\"avatar_url\" = ...\n })\n ```\n\n Cycles offers a set of higher-level objects. With these objects, there is no\n need to manually build query strings, or to create collection objects from\n JSON response. More importantly, Cycles is designed in a way to help you build\n HTTP functionality into your model layer. Also, properties like `solicited`\n encourage you to build delightful user experiences.\n",
"homepage": "https://github.com/weipin/Cycles",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"Weipin Xia": "weipin@me.com"
},
"source": {
"git": "https://github.com/weipin/Cycles.git",
"tag": "0.2.3"
},
"platforms": {
"ios": "7.0"
},
"requires_arc": true,
"source_files": "source/*",
"documentation_url": "https://cycles.readthedocs.org/"
}