src/Request.php
public static function factory($uri = true, $clientParams = [], $injectedRoutes = [])
    {
        $request = new Request($uri, $clientParams, $injectedRoutes);
        return $request;
    }
public static function factory($uri = true, $clientParams = [], $injectedRoutes = [])
    {
        $request = new Request($uri, $clientParams, $injectedRoutes);
        return $request;
    }
创建一个新的实例

$request = Request::factory($uri);

@param   bool|string $uri            URI
@param   array       $clientParams   注入到client中的参数
@param   array       $injectedRoutes 注入到路由中的参数，一般用于测试
@return  Request|void
@throws  BaseException