Spell 0.2.1

Spell 0.2.1

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2015年11月
SPM支持SPM

Paulo Faria维护。



 
依赖项
Otherside= 0.1.1
Spectrum= 0.2
 

Spell 0.2.1

  • 作者
  • Paulo Faria

Spell

codecov.io

Spell 是一个针对 Swift 2 的 HTTP 路由器。

特性

  • [x] 无 Foundation 依赖(为Linux兼容
  • [x] URI 路径参数
  • [x] 路由组

依赖项

Spell 由以下组成:

用法

let router = HTTPRouter { router in
    router.get("/users/:id") { request in
        let id = request.parameters["id"]
        return HTTPResponse(status: .OK)
    }
}

安装

命令行应用

要在命令行应用中使用 Spell

许可证

Spell 在 MIT 许可下发布。详情请见 LICENSE。