HTTP 服务器
更多...
HTTP 服务器
在文件 BuiltinObjects.x 第 1331 行定义.
◆ HttpServer() [1/2]
◆ HttpServer() [2/2]
◆ addWebsite() [1/2]
添加网站
- 参数
-
domains | 网站的域名列表, 用分号分割 |
website | 网站对象 |
- 返回
- 成功添加的域名数
◆ addWebsite() [2/2]
int addWebsite |
( |
String |
, |
|
|
|
Website |
|
) |
| |
◆ close() [1/2]
◆ close() [2/2]
◆ configHttps() [1/2]
◆ configHttps() [2/2]
bool configHttps |
( |
bool |
, |
|
|
|
String, |
|
|
|
String |
|
) |
| |
◆ finalize() [1/2]
◆ finalize() [2/2]
清理工作 ,注意 继承对象并重写了finalize 必须使用super.finalize 以免内核对象泄露
◆ isRunning()
◆ quiesce() [1/2]
◆ quiesce() [2/2]
◆ setConnectionTimeout() [1/2]
bool setConnectionTimeout |
( |
int |
millisec | ) |
|
|
package |
◆ setConnectionTimeout() [2/2]
bool setConnectionTimeout |
( |
int |
| ) |
|
◆ setIpConnectionLimit() [1/2]
bool setIpConnectionLimit |
( |
int |
n | ) |
|
|
package |
◆ setIpConnectionLimit() [2/2]
bool setIpConnectionLimit |
( |
int |
| ) |
|
◆ setMaxConnection() [1/2]
bool setMaxConnection |
( |
int |
n | ) |
|
|
package |
◆ setMaxConnection() [2/2]
bool setMaxConnection |
( |
int |
| ) |
|
◆ setThreadPoolSize() [1/2]
bool setThreadPoolSize |
( |
int |
n | ) |
|
|
package |
◆ setThreadPoolSize() [2/2]
bool setThreadPoolSize |
( |
int |
| ) |
|
◆ start()
◆ startServer()
bool startServer |
( |
int |
flags, |
|
|
int |
port |
|
) |
| |
|
package |
◆ stop()
◆ DEFAULT_MODEL
static const int DEFAULT_MODEL = 0 |
|
staticpackage |
◆ EPOLL_MODEL
static const int EPOLL_MODEL = 3 |
|
staticpackage |
◆ POLL_MODEL
static const int POLL_MODEL = 2 |
|
staticpackage |
◆ SELECT_MODEL
static const int SELECT_MODEL = 1 |
|
staticpackage |