PHP Class Kohkimakimoto\Worker\HttpServer\HttpServer

Show file Open project: kohkimakimoto/workerphp

Protected Properties

Property Type Description
$apiKeys
$booted
$eventLoop
$host
$http
$output
$port
$router
$socket
$worker

Public Methods

Method Description
__construct ( $worker, $output, $eventLoop, $router )
boot ( )
getAPIKeys ( )
listen ( $port = 8080, $host = '0.0.0.0' )
outputAccessLog ( $request, $status )
setAPIKey ( $apiKey )
shutdown ( )

Method Details

__construct() public method

public __construct ( $worker, $output, $eventLoop, $router )

boot() public method

public boot ( )

getAPIKeys() public method

public getAPIKeys ( )

listen() public method

public listen ( $port = 8080, $host = '0.0.0.0' )

outputAccessLog() public method

public outputAccessLog ( $request, $status )

setAPIKey() public method

public setAPIKey ( $apiKey )

shutdown() public method

public shutdown ( )

Property Details

$apiKeys protected property

protected $apiKeys

$booted protected property

protected $booted

$eventLoop protected property

protected $eventLoop

$host protected property

protected $host

$http protected property

protected $http

$output protected property

protected $output

$port protected property

protected $port

$router protected property

protected $router

$socket protected property

protected $socket

$worker protected property

protected $worker