private static function captureHttpRequest()
    {
        $server = $_SERVER;
        $uri = self::getCompleteRequestUri($server);
        $method = strtoupper($server['REQUEST_METHOD']);
        $parameters = self::getParametersFromContentType($server['CONTENT_TYPE'] ?? ContentType::PLAIN);
        if (isset($parameters['__method'])) {
            $method = strtoupper($parameters['__method']);
        }
        self::$httpRequest = new Request($uri, $method, [
            'parameters' => $parameters,
            'cookies' => $_COOKIE,
            'files' => $_FILES,
            'server' => $server
        ]);
    }