Swift 的 HTTP 开发包 SwiftHTTP

码农软件 · 软件分类 · 网络工具包 · 2019-02-27 10:29:28

软件介绍

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)")
    })

本文地址:https://www.codercto.com/soft/d/234.html

Ajax Design Patterns

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》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具