private static function getHeaders($recognizedHeaders)
    {
        $headers = array();

        foreach ($recognizedHeaders as $header) {
            if (isset($_SERVER[$header])) {
                $headers[] = $header;
            }
        }

        return $headers;
    }
private static function getHeaders($recognizedHeaders)
    {
        $headers = array();

        foreach ($recognizedHeaders as $header) {
            if (isset($_SERVER[$header])) {
                $headers[] = $header;
            }
        }

        return $headers;
    }
private static function getHeaders ( $ recognizedHeaders ) { $ headers = array ( ) ; foreach ( $ recognizedHeaders as $ header ) { if ( isset ( $ _SERVER [ $ header ] ) ) { $ headers [ ] = $ header ; } } return $ headers ; }
Get headers present in the HTTP request

@param array $recognizedHeaders
@return array HTTP headers
Get headers present in the HTTP request