Property | Type | Description | |
---|---|---|---|
$_onWorkerStart | callback | Used to save user OnWorkerStart callback settings. | |
$mimeTypeMap | array | Mime mapping. | |
$serverRoot | Virtual host to path mapping. |
Method | Description | |
---|---|---|
__construct ( string $socket_name, array $context_option = [] ) | Construct. | |
addRoot ( string $domain, string $root_path ) : void | Add virtual host. | |
initMimeTypeMap ( ) : void | Init mime map. | |
onMessage ( |
Emit when http message coming. | |
onWorkerStart ( ) | Emit when process start. | |
run ( ) | Run webserver instance. | |
sendFile ( $connection, $file_path ) |
public __construct ( string $socket_name, array $context_option = [] ) | ||
$socket_name | string | |
$context_option | array |
protected callback $_onWorkerStart | ||
return | callback |
protected static array $mimeTypeMap | ||
return | array |