protected function getHeaderName($header): string
    {
        if (0 === strpos($header, 'HTTP_')) {
            $header = substr($header, 5);
        }

        $header =
            str_replace(
                ' ',
                '-',
                ucwords(str_replace('_', ' ', strtolower($header)))
            );

        return $header;
    }