HttpServer 类 提供HTTP服务器功能,支持多种网络模型和配置选项
在文件 HttpServer.x 第 5 行定义.
◆ HttpServer()
◆ addWebsite()
int addWebsite |
( |
String |
, |
|
|
|
Website |
|
) |
| |
◆ close()
◆ configHttps()
bool configHttps |
( |
bool |
, |
|
|
|
String, |
|
|
|
String |
|
) |
| |
◆ finalize()
◆ isRunning()
◆ quiesce()
◆ setConnectionTimeout()
bool setConnectionTimeout |
( |
int |
| ) |
|
◆ setIpConnectionLimit()
bool setIpConnectionLimit |
( |
int |
| ) |
|
◆ setMaxConnection()
bool setMaxConnection |
( |
int |
| ) |
|
◆ setThreadPoolSize()
bool setThreadPoolSize |
( |
int |
| ) |
|
◆ start()
◆ stop()
◆ ALLOW_UPGRADE
◆ DEFAULT_MODEL
◆ EPOLL_MODEL
EPOLL网络模型 使用epoll系统调用实现的多路复用 Linux平台下性能最好的模型
在文件 HttpServer.x 第 31 行定义.
◆ POLL_MODEL
◆ SELECT_MODEL