src/mako/http/request/Server.php
public function getHeaders(): array
	{
		$headers = [];

		foreach($this->parameters as $key => $value)
		{
			if(strpos($key, 'HTTP_') === 0)
			{
				$headers[substr($key, 5)] = $value;
			}
			elseif(in_array($key, ['CONTENT_LENGTH', 'CONTENT_MD5', 'CONTENT_TYPE']))
			{
				$headers[$key] = $value;
			}
		}

		return $headers;
	}
public function getHeaders(): array
	{
		$headers = [];

		foreach($this->parameters as $key => $value)
		{
			if(strpos($key, 'HTTP_') === 0)
			{
				$headers[substr($key, 5)] = $value;
			}
			elseif(in_array($key, ['CONTENT_LENGTH', 'CONTENT_MD5', 'CONTENT_TYPE']))
			{
				$headers[$key] = $value;
			}
		}

		return $headers;
	}
public function getHeaders ( ) : array { $ headers = [ ] ; foreach ( $ this -> parameters as $ key => $ value ) { if ( strpos ( $ key , 'HTTP_' ) === 0 ) { $ headers [ substr ( $ key , 5 ) ] = $ value ; } elseif ( in_array ( $ key , [ 'CONTENT_LENGTH' , 'CONTENT_MD5' , 'CONTENT_TYPE' ] ) ) { $ headers [ $ key ] = $ value ; } } return $ headers ; }
Returns all the request headers.

@return array
Returns all the request headers .