HTTP服务器Swift开发包:Swift Taylor
                 jopen
                 11年前
            
                    Taylor 是一个用 Swift 编写 HTTP 服务器的开发包。
进展
  
  当前,Taylor只支持 GET 和 POST HTTP 请求。它依赖于 xcodebuild 来编译该binary,that's the reason of the existance of the Taylor.xcodeproj file。
  
let taylor = Taylor(port: 5000)    taylor.get("/") {       request, response in        response.stringBody = "Hello World"      response.send()        return nil  }    taylor.startListening(forever: true)