src/Leevel/Protocol/HttpServer.php
protected function dispatchRouter(IRequest $request): IResponse
    {
        $kernel = $this->container->make(IKernel::class);

        $response = $kernel->handle($request);

        $kernel->terminate($request, $response);

        $this->removeCoroutine();

        return $response;
    }
protected function dispatchRouter(IRequest $request): IResponse
    {
        $kernel = $this->container->make(IKernel::class);

        $response = $kernel->handle($request);

        $kernel->terminate($request, $response);

        $this->removeCoroutine();

        return $response;
    }
路由调度.

@param \Leevel\Http\IRequest $request

@return \Leevel\Http\IResource