public static function current()
	{
		$url		= $_SERVER["REQUEST_URI"];
		$method		= $_SERVER["REQUEST_METHOD"];
		$time		= $_SERVER["REQUEST_TIME_FLOAT"];
		$headers	= getallheaders() ?: [];
		$inputs		= [];
		$files		= [];

		// Populate input
		$raw = [];
		switch ($method)
		{
			case "GET":
				$raw = $_GET;
				break;
			case "POST":
				$raw = $_POST;
				break;
			default:
				parse_str(file_get_contents("php://input"), $raw);
		}
		foreach ($raw as $input => $val) $inputs[$input] = parse_string($val);

		// Populate files
		foreach ($_FILES as $name => $file) $files[$name] = $file;

		// Return request
		return new static(
			$url,
			$method,
			$time,
			$headers,
			$inputs,
			$files
		);
	}
public static function current()
	{
		$url		= $_SERVER["REQUEST_URI"];
		$method		= $_SERVER["REQUEST_METHOD"];
		$time		= $_SERVER["REQUEST_TIME_FLOAT"];
		$headers	= getallheaders() ?: [];
		$inputs		= [];
		$files		= [];

		// Populate input
		$raw = [];
		switch ($method)
		{
			case "GET":
				$raw = $_GET;
				break;
			case "POST":
				$raw = $_POST;
				break;
			default:
				parse_str(file_get_contents("php://input"), $raw);
		}
		foreach ($raw as $input => $val) $inputs[$input] = parse_string($val);

		// Populate files
		foreach ($_FILES as $name => $file) $files[$name] = $file;

		// Return request
		return new static(
			$url,
			$method,
			$time,
			$headers,
			$inputs,
			$files
		);
	}
public static function current ( ) { $ url = $ _SERVER [ "REQUEST_URI" ] ; $ method = $ _SERVER [ "REQUEST_METHOD" ] ; $ time = $ _SERVER [ "REQUEST_TIME_FLOAT" ] ; $ headers = getallheaders ( ) ? : [ ] ; $ inputs = [ ] ; $ files = [ ] ; // Populate input
 $ raw = [ ] ; switch ( $ method ) { case "GET" : $ raw = $ _GET ; break ; case "POST" : $ raw = $ _POST ; break ; default : parse_str ( file_get_contents ( "php://input" ) , $ raw ) ; } foreach ( $ raw as $ input => $ val ) $ inputs [ $ input ] = parse_string ( $ val ) ; // Populate files
 foreach ( $ _FILES as $ name => $ file ) $ files [ $ name ] = $ file ; // Return request
 return new static ( $ url , $ method , $ time , $ headers , $ inputs , $ files ) ; }
Return current request

@return Request
Return current request