src/authnet/AuthnetWebhook.php
protected function getAllHeaders()
    {
        if (function_exists('apache_request_headers')) {
            $headers = apache_request_headers();
        } else {
            $headers = array_filter($_SERVER, function($key) {
                return strpos($key, 'HTTP_') === 0;
            }, ARRAY_FILTER_USE_KEY);
        }
        return $headers;
    }
protected function getAllHeaders()
    {
        if (function_exists('apache_request_headers')) {
            $headers = apache_request_headers();
        } else {
            $headers = array_filter($_SERVER, function($key) {
                return strpos($key, 'HTTP_') === 0;
            }, ARRAY_FILTER_USE_KEY);
        }
        return $headers;
    }
protected function getAllHeaders ( ) { if ( function_exists ( 'apache_request_headers' ) ) { $ headers = apache_request_headers ( ) ; } else { $ headers = array_filter ( $ _SERVER , function ( $ key ) { return strpos ( $ key , 'HTTP_' ) === 0 ; } , ARRAY_FILTER_USE_KEY ) ; } return $ headers ; }
Retrieves all HTTP headers of a given request

@return array
Retrieves all HTTP headers of a given request