public function next(ServerRequestInterface $request) : ResponseInterface;
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"); } }