public function normalizeKey($key)
    {
        $key = strtolower($key);
        $key = str_replace(array('-', '_'), ' ', $key);
        $key = preg_replace('#^http #', '', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '-', $key);

        return $key;
    }
public function normalizeKey($key)
    {
        $key = strtolower($key);
        $key = str_replace(array('-', '_'), ' ', $key);
        $key = preg_replace('#^http #', '', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '-', $key);

        return $key;
    }
public function normalizeKey ( $ key ) { $ key = strtolower ( $ key ) ; $ key = str_replace ( array ( '-' , '_' ) , ' ' , $ key ) ; $ key = preg_replace ( '#^http #' , '' , $ key ) ; $ key = ucwords ( $ key ) ; $ key = str_replace ( ' ' , '-' , $ key ) ; return $ key ; }
Transform header name into canonical form

@param  string $key
@return string
Transform header name into canonical form