20 return [
'BEER',
'WINE'];
26 $server->
on(
'beforeMethod', [$this,
'beforeMethod']);
This interface represents a HTTP response.
The RequestInterface represents a HTTP request.
The baseclass for all server plugins.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
foreach($paths as $path) $request
initialize(Server $server)
getMethod()
Returns the current HTTP method.
beforeMethod(RequestInterface $request, ResponseInterface $response)