public static function request(App $config = null, bool $getShared = true)
	{
		if ($getShared)
		{
			return static::getSharedInstance('request', $config);
		}

		if (! is_object($config))
		{
			$config = config(App::class);
		}

		return new IncomingRequest(
			$config,
			new URI(),
			'php://input',
			new UserAgent()
		);
	}
public static function request(App $config = null, bool $getShared = true)
	{
		if ($getShared)
		{
			return static::getSharedInstance('request', $config);
		}

		if (! is_object($config))
		{
			$config = config(App::class);
		}

		return new IncomingRequest(
			$config,
			new URI(),
			'php://input',
			new UserAgent()
		);
	}
public static function request ( App $ config = null , bool $ getShared = true ) { if ( $ getShared ) { return static :: getSharedInstance ( 'request' , $ config ) ; } if ( ! is_object ( $ config ) ) { $ config = config ( App :: class ) ; } return new IncomingRequest ( $ config , new URI ( ) , 'php://input' , new UserAgent ( ) ) ; }
The Request class models an HTTP request.

@param \Config\App $config
@param boolean     $getShared

@return \CodeIgniter\HTTP\IncomingRequest
The Request class models an HTTP request .