lighttpd-cpp

码农软件 · 软件分类 · 其他开发相关 · 2019-10-29 15:42:39

软件介绍

lighttpd-cpp 是一个 C++ 的助手类用来快速创建 lighttpd 的扩展模块,该助手类封装了很多模块编写的复杂度,如下面代码所示:

#include <lighttpd-cpp/plugin.hpp>
#include <boost/mpl/list.hpp>
#include <string>

class mod_blank : public Plugin< mod_blank >
{
public:
        mod_blank( server& srv )
         :      Plugin< mod_blank >( srv ),
                some_string             ( "some_string" ),
                some_int                ( "some_int" ),
                some_bool               ( "some_bool" ),
                some_short              ( "some_short" )
        {}

        typedef boost::mpl::list<       UriRawHandler,
                                        UriCleanHandler,
                                        DocRootHandler,
                                        PhysicalHandler,
                                        StartBackendHandler > handlers;

        handler_t handle_uri_raw( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_uri_clean( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_docroot( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_physical( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_start_backend( connection& con ){ return HANDLER_GO_ON; }

        config_option< std::string >    some_string;
        config_option< int >            some_int;
        config_option< bool >           some_bool;
        config_option< short >          some_short;
};

MAKE_PLUGIN( mod_blank, "blank", LIGHTTPD_VERSION_ID );

本文地址:https://www.codercto.com/soft/d/17827.html

Producter 让产品从0到1

Producter 让产品从0到1

周楷雯 / 人民邮电出版社 / 2016-12-25 / CNY 69.00

这是一本以App Store首页推荐的成功App为例阐述如何完成一款App产品的设计、开发和营销的书。在这本书之后,作者的《一炷香》和《字里行间》两款产品也接连被App Store首页推荐。 《Producter 让产品从0到1》从产品的设计、产品的实现、产品的迭代、产品的营销、产品的进阶等几个角度,全面讲解了产品设计的基本原则、设计的重要性、设计的感觉、实用的设计工具、简单的iOS开发、产......一起来看看 《Producter 让产品从0到1》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具