src/Leevel/Protocol/WebsocketServer.php
protected function createRequestWithPathInfo(string $pathInfo, string $type): IRequest
    {
        $request = new Request();
        $request->setPathInfo($this->normalizePathInfo($pathInfo, $type));

        return $request;
    }
protected function createRequestWithPathInfo(string $pathInfo, string $type): IRequest
    {
        $request = new Request();
        $request->setPathInfo($this->normalizePathInfo($pathInfo, $type));

        return $request;
    }
根据 pathInfo 创建 HTTP 请求对象

@param string $pathInfo
@param string $type

@return \Leevel\Http\IRequest