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

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

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

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

        return $header;
    }
protected function getHeaderName ( $ header ) : string { if ( 0 === strpos ( $ header , 'HTTP_' ) ) { $ header = substr ( $ header , 5 ) ; } $ header = str_replace ( ' ' , '-' , ucwords ( str_replace ( '_' , ' ' , strtolower ( $ header ) ) ) ) ; return $ header ; }
Get the correct HTTP header name.

@param string $header

@return string
Get the correct HTTP header name .