Property | Type | Description | |
---|---|---|---|
$name | string | Name of the server | |
$version | null | Version of the API |
Method | Description | |
---|---|---|
__call ( string $name, array $arguments ) | ||
__construct ( null $name = null, null $version = null ) | ||
__invoke ( React\Http\Request $httpRequest, React\Http\Response $httpResponse ) | Parse request from user | |
group ( String $prefix, Callable $callback ) : CapMousse\ReactRestify\Routing\Routes | Create a new group of route | |
on ( String $event, Callable $callback ) | Manual router event manager | |
setAccessControlAllowOrigin ( string $origin ) | The the Access-Control-Allow-Origin header |
Method | Description | |
---|---|---|
initEvents ( ) : void | Init default event catch |
public __construct ( null $name = null, null $version = null ) | ||
$name | null | |
$version | null |
public __invoke ( React\Http\Request $httpRequest, React\Http\Response $httpResponse ) | ||
$httpRequest | React\Http\Request | |
$httpResponse | React\Http\Response |
public group ( String $prefix, Callable $callback ) : CapMousse\ReactRestify\Routing\Routes | ||
$prefix | String | prefix of the routes |
$callback | Callable | |
return | CapMousse\ReactRestify\Routing\Routes |
public on ( String $event, Callable $callback ) | ||
$event | String | |
$callback | Callable |
public setAccessControlAllowOrigin ( string $origin ) | ||
$origin | string |