
webmachine
langxianwu
本人性格开朗,爱好体育运动和编程.目前从事公安行业软件开发.
展开
-
用webmachine 的缓存 是如此简单
HTTP Caching SupportHTTP caching support is also quite easy, with functions allowing resources to define (e.g.) last_modified, expires, and generate_etag. For instance, since representations of t...2011-11-04 13:19:45 · 119 阅读 · 0 评论 -
webmachine的init 和 to_html
请问 群里 有没有 用 webmachine, init 和 to_html 是必须的吗 这个问题 困惑了 我一会。昨天就应该发现他们的本质,还好只拖到了今天开始下面 默认提供的to_html方法,当然如果喜欢 可以改成to_htminit是必须的 初始化用的。。。。。 content_types_provided[{"text/html", to_html}]...2011-11-04 14:25:11 · 136 阅读 · 0 评论 -
mochijson小计
1> erlang 转换为 json1> mochijson:encode(1) 整数1> ."1"2> mochijson:encode(true) true2> ."true"3> mochijson:encode(false) flse3> ."false"4> moc2011-11-09 12:05:43 · 149 阅读 · 0 评论 -
学习webmachine总结
65 学习webmachine总结 66 webmachine确实“另类”. 没有MVC,没有ORM,还没有像样的tutorials.费了九牛二虎之力在blog中找到相关例子,还是 67 还好有个有个quickstart http://webmachine.basho.com/quickstart.html 68 qurkstart里面仅仅讲了编译启动访问。quickstart...2011-11-09 15:06:52 · 234 阅读 · 0 评论 -
Webmachine是如何工作的
92 Webmachine是如何工作的 93 这个页面是从一个http请求到完成http响应来描述Webmachine基本原理。 94 (这里有与你理解的"Web FrameWork"点不同,因为我们不讨论MVC,ORMs或另外一些关于应用程序的rest形式,我们相信你认识在你的应用程序中我们是做的最好的。 We bmachine's 的任务是帮助你确认你的应用程序在Web...2011-11-10 08:18:58 · 151 阅读 · 0 评论