- 授权协议: MIT
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: http://kemalcr.com/
- 软件文档: http://kemalcr.com/docs/getting_started/
- 官方下载: https://github.com/kemalcr/kemal/archive/master.zip
软件介绍
快速、简单的 Web 框架,采用 Crystal 语言编写。
特性
支持所有 REST verbs
支持 WebSocket
Request/Response 上下文,方便的参数处理
内置易于扩展的中间件
内置 JSON 支持
内置静态文件服务
通过 ECR 内置视图模板
示例代码
require "kemal" # Matches GET "http://host:port/" get "/" do "Hello World!" end # Creates a WebSocket handler. # Matches "ws://host:port/socket" ws "/socket" do |socket| socket.send "Hello from Kemal!" end Kemal.run
测试结果
这些结果是用 wrk 在 2013 年底的 Macbook Pro 上实现的。(2Ghz i7 8GB Ram OS X Yosemite)
Web Caching
Duane Wessels / O'Reilly Media, Inc. / 2001-6 / 39.95美元
On the World Wide Web, speed and efficiency are vital. Users have little patience for slow web pages, while network administrators want to make the most of their available bandwidth. A properly design......一起来看看 《Web Caching》 这本书的介绍吧!
