Criollo 是一款基于 Cocoa 的 Web 框架,用于 OS X 和 iOS 系统。Cocoa有助于创建非常快速独立的web应用程序,这些程序直接通过HTTP或FastCGI提供内容。你可以用Objective-C 或者 Swift语言编写代码。同时你也可以用你自己知道或者喜欢的:Grand Central Dispatch, NSURLSession, CoreImage 甚至更多。就像这样很容易:CRServer* server = [[CRHTTPServer alloc] init]; [server addBlock:^(CRRequest * request, CRResponse * response, CRRouteCompletionBlock completionHandler) { [response send:@"Hello world!"]; } forPath:@"/"]; [server startListening];用Swiftlet server:CRServer = CRHTTPServer() server.addBlock({ (request, response, completionHandler) -> Void in response.send("Hello world!") }, forPath: "/") server.startListening()入门Download Criollo and try out the included OS X and iOS example apps. Criollo requires CocoaAsyncSocket, so do not forget to download it into Libraries/CocoaAsyncSocket.Read the “Getting Started” guide and move further with the “Doing More Stuff” guideCheck out the documentation for a look at the APIs availableLearn how to deploy your Criollo apps in the “Deployment” guide安装安装CocoaPodsCreate the Podfile if you don’t already have one. You can do so by running pod init in the folder of the project.Add Criollo to your Podfile. pod 'Criollo', '~> 0.1’Run pod install复制repogit clone --recursive https://github.com/thecatalinstan/Criollo.git 标签:Criollo Web框架
- 粉丝: 784
- 资源: 3万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助