内容简介:Webcppd 1.0.9 发布,C++应用服务器
这是webcppd升级为 httpevent 后的第二个更新。
主要更新:
-
解决内存多余消耗问题
-
解决空值响应问题
httpevent 是webcppd的继承者,在多个方面增强了后者,并且融入了 lua 开发要素,可同时支持使用c++和lua进行web开放。
C++ HELLOWORLD:
#include <httpevent.hpp>
namespace httpevent {
class hello : public view {
void handler(const request& req, response& res) {
res.send_head("Content-Type", "text/plain;charset=UTF-8")
.send_body("hello,world");
}
};
}
lua HELLOWORLD:
local hello={}
function hello.main()
httpevent.response:send_head("Content-Type", "text/plain;charset=UTF-8")
:send_body('hello,world')
end
return hello
依赖:
-
libevent v2.1.8+
-
Poco framework v1.6+
-
lua devel v5.1+
-
openssl devel
开发例子请参考: https://github.com/webcpp/httpevent/tree/master/plugin
更多介绍参见: https://github.com/webcpp/httpevent
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
网络经济的十种策略
(美)凯文・凯利 / 肖华敬/任平 / 广州出版社 / 2000-06 / 26.00元
全书介绍网络经济的十个新游戏规则,分别是:蜜蜂比狮子重要;级数比加法重要;普及比稀有重要;免费比利润重要;网络比公司重要;造山比登山重要;空间比场所重要;流动比平衡重要;关系比产能重要;机会比效率重要!一起来看看 《网络经济的十种策略》 这本书的介绍吧!