\Imi\Server\HttpServer

Http 服务器类

Summary

Methods
Properties
Constants
isSSL()
isHttp2()
No public properties found
No constants found
createServer()
createSubServer()
getServerInitConfig()
bindEvents()
__bindEvents()
No protected properties found
N/A
No private methods found
$https
$http2
N/A

Properties

$https

$https : boolean

是否为 https 服务

Type

boolean

$http2

$http2 : boolean

是否为 http2 服务

Type

boolean

Methods

isSSL()

isSSL() : boolean

是否为 https 服务

Returns

boolean

isHttp2()

isHttp2() 

是否为 http2 服务

createServer()

createServer() : void

创建 swoole 服务器对象

createSubServer()

createSubServer() : void

从主服务器监听端口,作为子服务器

getServerInitConfig()

getServerInitConfig() : array

获取服务器初始化需要的配置

Returns

array

bindEvents()

bindEvents() : void

绑定服务器事件

__bindEvents()

__bindEvents() : void

绑定服务器事件