Method |
Description |
|
addRoute ( string $path, Kraken\Network\NetworkComponentInterface $component ) : Kraken\Network\Http\Component\Router\HttpRouterInterface |
Add an endpoint/application to the server. |
|
allowOrigin ( string $address ) : Kraken\Network\Http\Component\Router\HttpRouterInterface |
Add an origin to the whitelist that will be allowed to connect to your application. |
|
disallowOrigin ( string $address ) : Kraken\Network\Http\Component\Router\HttpRouterInterface |
Remove an origin so it will not be able access your routes. |
|
existsRoute ( string $path ) : boolean |
Check if there exists any endpoint/application to the server on given route. |
|
getAllowedOrigins ( ) : string[] |
Get an array of all the addresses allowed. |
|
isOriginAllowed ( string $address ) : boolean |
Check if given $address is allowed or not. |
|
removeRoute ( string $path ) : Kraken\Network\Http\Component\Router\HttpRouterInterface |
Remote endpoint/application from the server. |
|