WordPress at a glance
function is not described

apache_request_headers() WPSCache 1.0

A fallback for get request headers. Based on comments from http://php.net/manual/en/function.apache-request-headers.php

No Hooks.

Return

Array. List of request headers

Usage

apache_request_headers();

Code of apache_request_headers() WPSCache 1.7.3

<?php
function apache_request_headers() {
	$headers = array();

	foreach ( array_keys( $_SERVER ) as $skey ) {
		if ( 0 === strpos( $skey, 'HTTP_' ) ) {
			$header = implode( '-', array_map( 'ucfirst', array_slice( explode( '_', strtolower( $skey ) ) , 1 ) ) );
			$headers[ $header ] = $_SERVER[ $skey ];
		}
	}

	return $headers;
}