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

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

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

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

		return new Response($config);
	}
public static function response ( App $ config = null , bool $ getShared = true ) { if ( $ getShared ) { return static :: getSharedInstance ( 'response' , $ config ) ; } if ( ! is_object ( $ config ) ) { $ config = config ( App :: class ) ; } return new Response ( $ config ) ; }
The Response class models an HTTP response.

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

@return \CodeIgniter\HTTP\Response
The Response class models an HTTP response .