Tari\ServerFrameInterface::next PHP Method

next() public method

public next ( Psr\Http\Message\ServerRequestInterface $request ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
return Psr\Http\Message\ResponseInterface
    public function next(ServerRequestInterface $request) : ResponseInterface;

Usage Example

Example #1
0
 public function handle(ServerRequestInterface $request, ServerFrameInterface $frame) : ResponseInterface
 {
     try {
         return $frame->next($request);
     } catch (\Throwable $exception) {
         return $frame->factory()->createResponse(500, [], $this->debug ? $exception : "Internal Server Error");
     }
 }
All Usage Examples Of Tari\ServerFrameInterface::next
ServerFrameInterface