|
fastdo
0.6.16
|
HttpServer配置参数 更多...
#include <http_HttpServerConfig.hpp>

Public 成员函数 | |
| HttpServerConfig () | |
| 构造函数0 更多... | |
| HttpServerConfig (winux::ConfigureSettings const &settings) | |
| 构造函数1,从配置对象加载参数 更多... | |
| HttpServerConfig (winux::ConfigureSettings const *settings, eiennet::ip::EndPoint const &ep, int threadCount=4, int backlog=0, double serverWait=0.002, double verboseInterval=0.01, eiennet::VerboseOutputType verbose=eiennet::votConsole, int cacheLifeTime=86400) | |
| 构造函数2,从配置对象加载参数,如果没有配置,则默认为指定参数 更多... | |
| bool | init (winux::ConfigureSettings const &settings) |
| 初始化,从配置对象加载参数 更多... | |
| bool | init (winux::ConfigureSettings const *settings, eiennet::ip::EndPoint const &ep, int threadCount=4, int backlog=0, double serverWait=0.002, double verboseInterval=0.01, eiennet::VerboseOutputType verbose=eiennet::votConsole, int cacheLifeTime=86400) |
| 初始化,从配置对象加载参数,如果没有配置,则默认为指定参数 更多... | |
| winux::String | getMime (winux::String const &extName) const |
| 取得指定扩展名的MIME 更多... | |
Public 属性 | |
| winux::ConfigureSettings const * | confSettings |
| winux::String | serverIp |
| 服务器IP,可留空 更多... | |
| winux::ushort | serverPort |
| 服务器监听端口 更多... | |
| int | listenBacklog |
| 监听积压数 更多... | |
| int | threadCount |
| 线程数 更多... | |
| double | serverWait |
| 服务器IO等待间隔时间(小数秒) 更多... | |
| double | verboseInterval |
| verbose信息刷新间隔(小数秒) 更多... | |
| eiennet::VerboseOutputType | verbose |
| 显示冗长信息 更多... | |
| int | retryCount |
| 连接重试次数 更多... | |
| int | sockTimeout |
| 套接字超时时间(整数秒) 更多... | |
| winux::String | siteName |
| 网站名,可留空 更多... | |
| winux::String | documentRoot |
| 文档根目录 更多... | |
| winux::StringArray | documentIndex |
| 文档首页 更多... | |
| winux::StringStringMap | errorPages |
| 错误页 更多... | |
| time_t | cacheLifeTime |
| 静态文件缓存生命期 更多... | |
| size_t | maxUrlencodedPostSize |
| 当请求的Content-Type是application/x-www-form-urlencoded时,表单POST发送数据的最大大小 更多... | |
| size_t | maxMultiFormPostSize |
| 当请求的Content-Type是multipart/form-data时,多部分表单POST发送数据的最大大小 更多... | |
| std::map< winux::String, winux::String > | mime |
| 一些静态文件的MIME 更多... | |
HttpServer配置参数
在文件 http_HttpServerConfig.hpp 第 6 行定义.
| http::HttpServerConfig::HttpServerConfig | ( | ) |
构造函数0
| http::HttpServerConfig::HttpServerConfig | ( | winux::ConfigureSettings const & | settings | ) |
构造函数1,从配置对象加载参数
| http::HttpServerConfig::HttpServerConfig | ( | winux::ConfigureSettings const * | settings, |
| eiennet::ip::EndPoint const & | ep, | ||
| int | threadCount = 4, |
||
| int | backlog = 0, |
||
| double | serverWait = 0.002, |
||
| double | verboseInterval = 0.01, |
||
| eiennet::VerboseOutputType | verbose = eiennet::votConsole, |
||
| int | cacheLifeTime = 86400 |
||
| ) |
构造函数2,从配置对象加载参数,如果没有配置,则默认为指定参数
| bool http::HttpServerConfig::init | ( | winux::ConfigureSettings const & | settings | ) |
初始化,从配置对象加载参数
| bool http::HttpServerConfig::init | ( | winux::ConfigureSettings const * | settings, |
| eiennet::ip::EndPoint const & | ep, | ||
| int | threadCount = 4, |
||
| int | backlog = 0, |
||
| double | serverWait = 0.002, |
||
| double | verboseInterval = 0.01, |
||
| eiennet::VerboseOutputType | verbose = eiennet::votConsole, |
||
| int | cacheLifeTime = 86400 |
||
| ) |
初始化,从配置对象加载参数,如果没有配置,则默认为指定参数
| winux::String http::HttpServerConfig::getMime | ( | winux::String const & | extName | ) | const |
取得指定扩展名的MIME
| winux::ConfigureSettings const* http::HttpServerConfig::confSettings |
在文件 http_HttpServerConfig.hpp 第 8 行定义.
| winux::String http::HttpServerConfig::serverIp |
服务器IP,可留空
在文件 http_HttpServerConfig.hpp 第 11 行定义.
| winux::ushort http::HttpServerConfig::serverPort |
服务器监听端口
在文件 http_HttpServerConfig.hpp 第 13 行定义.
| int http::HttpServerConfig::listenBacklog |
监听积压数
在文件 http_HttpServerConfig.hpp 第 15 行定义.
| int http::HttpServerConfig::threadCount |
线程数
在文件 http_HttpServerConfig.hpp 第 17 行定义.
| double http::HttpServerConfig::serverWait |
服务器IO等待间隔时间(小数秒)
在文件 http_HttpServerConfig.hpp 第 19 行定义.
| double http::HttpServerConfig::verboseInterval |
verbose信息刷新间隔(小数秒)
在文件 http_HttpServerConfig.hpp 第 21 行定义.
| eiennet::VerboseOutputType http::HttpServerConfig::verbose |
显示冗长信息
在文件 http_HttpServerConfig.hpp 第 23 行定义.
| int http::HttpServerConfig::retryCount |
连接重试次数
在文件 http_HttpServerConfig.hpp 第 25 行定义.
| int http::HttpServerConfig::sockTimeout |
套接字超时时间(整数秒)
在文件 http_HttpServerConfig.hpp 第 27 行定义.
| winux::String http::HttpServerConfig::siteName |
网站名,可留空
在文件 http_HttpServerConfig.hpp 第 30 行定义.
| winux::String http::HttpServerConfig::documentRoot |
文档根目录
在文件 http_HttpServerConfig.hpp 第 32 行定义.
| winux::StringArray http::HttpServerConfig::documentIndex |
文档首页
在文件 http_HttpServerConfig.hpp 第 34 行定义.
| winux::StringStringMap http::HttpServerConfig::errorPages |
错误页
在文件 http_HttpServerConfig.hpp 第 36 行定义.
| time_t http::HttpServerConfig::cacheLifeTime |
静态文件缓存生命期
在文件 http_HttpServerConfig.hpp 第 38 行定义.
| size_t http::HttpServerConfig::maxUrlencodedPostSize |
当请求的Content-Type是application/x-www-form-urlencoded时,表单POST发送数据的最大大小
在文件 http_HttpServerConfig.hpp 第 40 行定义.
| size_t http::HttpServerConfig::maxMultiFormPostSize |
当请求的Content-Type是multipart/form-data时,多部分表单POST发送数据的最大大小
在文件 http_HttpServerConfig.hpp 第 42 行定义.
| std::map< winux::String, winux::String > http::HttpServerConfig::mime |
一些静态文件的MIME
在文件 http_HttpServerConfig.hpp 第 45 行定义.