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

设计原本

设计原本

Frederick P. Brooks, Jr. / InfoQ中文站、王海鹏、高博 / 机械工业出版社 / 2011-1-1 / 55.00元

无论是软件开发、工程还是建筑,有效的设计都是工作的核心。《设计原本:计算机科学巨匠Frederick P. Brooks的思考》将对设计过程进行深入分析,揭示进行有效和优雅设计的方法。 本书包含了多个行业设计者的特别领悟。Frederick P. Brooks, Jr.精确发现了所有设计项目中内在的不变因素,揭示 了进行优秀设计的过程和模式。通过与几十位优秀设计者的对话,以及他自己在几个设计......一起来看看 《设计原本》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具