- 授权协议: Apache
- 开发语言: Swift
- 操作系统: OS X
- 软件首页: https://github.com/daltoniam/SwiftHTTP
- 软件文档: https://github.com/daltoniam/SwiftHTTP
软件介绍
SwiftHTTP 简单封装了 Swift 语言中的 NSURLSession ,简化了 HTTP 请求操作。
示例代码:
var request = HTTPTask()
request.GET("http://www.oschina.net/", parameters: nil, success: {(response: AnyObject?) -> Void in
if response {
let data = response as NSData
let str = NSString(data: data, encoding: NSUTF8StringEncoding)
println("response: \(str)") //prints the HTML of the page
}
},failure: {(error: NSError) -> Void in
println("error: \(error)")
})
Ajax Design Patterns
Michael Mahemoff / O'Reilly Media / 2006-06-29 / USD 44.99
Ajax, or Asynchronous JavaScript and XML, exploded onto the scene in the spring of 2005 and remains the hottest story among web developers. With its rich combination of technologies, Ajax provides a s......一起来看看 《Ajax Design Patterns》 这本书的介绍吧!
