fastdo  0.6.16
http_HttpServerConfig.hpp
浏览该文件的文档.
1 #pragma once
2 
3 namespace http
4 {
7 {
9 
19  double serverWait;
28 
38  time_t cacheLifeTime;
43 
45  std::map< winux::String, winux::String > mime; // MIME
46 
49 
51  HttpServerConfig( winux::ConfigureSettings const & settings );
52 
55  winux::ConfigureSettings const * settings,
56  eiennet::ip::EndPoint const & ep,
57  int threadCount = 4,
58  int backlog = 0,
59  double serverWait = 0.002,
60  double verboseInterval = 0.01,
62  int cacheLifeTime = 86400
63  );
64 
66  bool init( winux::ConfigureSettings const & settings );
67 
69  bool init(
70  winux::ConfigureSettings const * settings,
71  eiennet::ip::EndPoint const & ep,
72  int threadCount = 4,
73  int backlog = 0,
74  double serverWait = 0.002,
75  double verboseInterval = 0.01,
77  int cacheLifeTime = 86400
78  );
79 
81  winux::String getMime( winux::String const & extName ) const;
82 
83 private:
84  void _initMime();
85 };
86 
87 
88 } // namespace http
size_t maxUrlencodedPostSize
当请求的Content-Type是application/x-www-form-urlencoded时,表单POST发送数据的最大大小 ...
winux::ushort serverPort
服务器监听端口
HttpServer配置参数
#define HTTPWRAPPER_DLL
Definition: http_base.hpp:24
XString< tchar > String
Definition: utilities.hpp:261
winux::String siteName
网站名,可留空
更强大的配置文件类
Definition: archives.hpp:71
HTTP协议的相关简单类封装
Definition: http_base.hpp:32
在控制台输出
std::map< String, String > StringStringMap
Definition: utilities.hpp:274
winux::ConfigureSettings const * confSettings
winux::String serverIp
服务器IP,可留空
winux::StringArray documentIndex
文档首页
winux::StringStringMap errorPages
错误页
double verboseInterval
verbose信息刷新间隔(小数秒)
VerboseOutputType
冗余信息输出类型
int retryCount
连接重试次数
int listenBacklog
监听积压数
eiennet::VerboseOutputType verbose
显示冗长信息
unsigned short ushort
Definition: utilities.hpp:218
double serverWait
服务器IO等待间隔时间(小数秒)
size_t maxMultiFormPostSize
当请求的Content-Type是multipart/form-data时,多部分表单POST发送数据的最大大小
winux::String documentRoot
文档根目录
time_t cacheLifeTime
静态文件缓存生命期
XStringArray< tchar > StringArray
Definition: utilities.hpp:272
std::map< winux::String, winux::String > mime
一些静态文件的MIME
int sockTimeout
套接字超时时间(整数秒)