Vapor是一个Swift的Web开发框架,其灵感来自于Laravel/Lumen。支持iOS、OSX和Ubuntu系统。
特点:
快速
语法漂亮
类型安全
示例代码:
Route.get("cookie") { request in let response = Response(status: .OK, text: "Cookie was set") response.cookies["test"] = "123" return response}Vapor是一个Swift的Web开发框架,其灵感来自于Laravel/Lumen。支持iOS、OSX和Ubuntu系统。
特点:
快速
语法漂亮
类型安全
示例代码:
Route.get("cookie") { request in let response = Response(status: .OK, text: "Cookie was set") response.cookies["test"] = "123" return response}
评论