CallableRequestHandler Class
Aurora\Http Namespace
Interfaces
- I RequestHandlerInterface
Properties
callback
Callback
protected $callback: \Closure
Constructor
__construct
Constructor
Parameters
Closure
$callback
— RequestHandler callback
Signature
public function __construct(Closure $callback)
Methods
__construct
Constructor
Parameters
-
Closure
$callback
— RequestHandler callback
Signature
public function __construct(Closure $callback)
handle
Handle request
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request
— Request instance
Return Value
\ResponseInterface
Signature
public function handle(Psr\Http\Message\ServerRequestInterface $request): Psr\Http\Message\ResponseInterface