public function getHttpHeadersArray():array {
		$headers = [];

		foreach($this->server as $key => $value) {
			if(strpos($key, "HTTP_") !== 0) {
				continue;
			}

			$headerName = substr($key, strlen("HTTP_"));
			$headerName = strtoupper($headerName);
			$headers[$headerName] = $value;
		}

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

		foreach($this->server as $key => $value) {
			if(strpos($key, "HTTP_") !== 0) {
				continue;
			}

			$headerName = substr($key, strlen("HTTP_"));
			$headerName = strtoupper($headerName);
			$headers[$headerName] = $value;
		}

		return $headers;
	}
public function getHttpHeadersArray ( ) : array { $ headers = [ ] ; foreach ( $ this -> server as $ key => $ value ) { if ( strpos ( $ key , "HTTP_" ) !== 0 ) { continue ; } $ headerName = substr ( $ key , strlen ( "HTTP_" ) ) ; $ headerName = strtoupper ( $ headerName ) ; $ headers [ $ headerName ] = $ value ; } return $ headers ; }
HTTP headers are case-insensitive, so headers are transformed to uppercase.
@see https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
HTTP headers are case - insensitive so headers are transformed to uppercase .