1 | <?php |
||
7 | class Headers |
||
8 | { |
||
9 | /** |
||
10 | * Get headers from $_SERVER global. |
||
11 | * @return array<array> |
||
12 | */ |
||
13 | public static function getHeadersArrayFromGlobals(): array |
||
36 | |||
37 | /** |
||
38 | * @param string $serverParameter |
||
39 | * @return bool |
||
40 | */ |
||
41 | private static function isServerKeyAHeader(string $serverParameter): bool |
||
45 | |||
46 | /** |
||
47 | * @param mixed $header |
||
48 | * @return array<mixed> |
||
49 | */ |
||
50 | private static function wrapValuesInArray($header): array |
||
54 | |||
55 | /** |
||
56 | * @param mixed $headerKey |
||
57 | * @return string |
||
58 | */ |
||
59 | private static function stripKeyOfLeadingHttpPrefix($headerKey): string |
||
63 | } |
||
64 |