src/Leevel/Kernel/Kernel.php
protected function middlewareTerminate(IRequest $request, IResponse $response): void
    {
        $this->router->throughMiddleware($request, [
            $response,
        ]);
    }
protected function middlewareTerminate(IRequest $request, IResponse $response): void
    {
        $this->router->throughMiddleware($request, [
            $response,
        ]);
    }
中间件结束响应.

@param \Leevel\Http\IRequest  $request
@param \Leevel\Http\IResponse $response