- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/weipin/Cycles
- 软件文档: https://github.com/weipin/Cycles
软件介绍
Cycles 是 Swift 编写的 HTTP 客户端开发包,目前还处于早起开发阶段,只支持 iOS
示例代码:
Cycle.get("https://api.github.com/user/",
requestProcessors: [BasicAuthProcessor(username: "user", password: "pass")],
responseProcessors: [JSONProcessor()],
completionHandler: { (cycle, error) in
println("\(cycle.response.statusCode)") // 200
var header = cycle.response.valueForHTTPHeaderField("content-type")
println("\(header)") // application/json; charset=utf-8
println("\(cycle.response.textEncoding)") // 4
println("\(cycle.response.text)") // {"login":"user","id":3 ...
println("\(cycle.response.object)") // {"avatar_url" = ...
})
We Are the Nerds
Christine Lagorio-Chafkin / Hachette Books / 2018-10-2 / USD 18.30
Reddit hails itself as "the front page of the Internet." It's the third most-visited website in the United States--and yet, millions of Americans have no idea what it is. We Are the Nerds is an eng......一起来看看 《We Are the Nerds》 这本书的介绍吧!
