src/Message.php
protected static function getNormalizedHeaderKey(string $name){
        static $convertCache = [];

        if(!isset($convertCache[$name])){
            $convertCache[$name]    = ucfirst(ucwords($name, "-"));
        }

        return $convertCache[$name];
    }
protected static function getNormalizedHeaderKey(string $name){
        static $convertCache = [];

        if(!isset($convertCache[$name])){
            $convertCache[$name]    = ucfirst(ucwords($name, "-"));
        }

        return $convertCache[$name];
    }
protected static function getNormalizedHeaderKey ( string $ name ) { static $ convertCache = [ ] ; if ( ! isset ( $ convertCache [ $ name ] ) ) { $ convertCache [ $ name ] = ucfirst ( ucwords ( $ name , "-" ) ) ; } return $ convertCache [ $ name ] ; }
Get normalized header key.

`content-type` to `Content-Type`.

@param string $name

@return string
Get normalized header key .