protected function serverParamKeyToHeaderName($key)
    {
        $name = null;
        
        if (\Jasny\str_starts_with($key, 'HTTP_')) {
            $name = $this->headerCase(substr($key, 5));
        } elseif (in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH'])) {
            $name = $this->headerCase($key);
        }
            
        return $name;
    }
protected function serverParamKeyToHeaderName($key)
    {
        $name = null;
        
        if (\Jasny\str_starts_with($key, 'HTTP_')) {
            $name = $this->headerCase(substr($key, 5));
        } elseif (in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH'])) {
            $name = $this->headerCase($key);
        }
            
        return $name;
    }
protected function serverParamKeyToHeaderName ( $ key ) { $ name = null ; if ( \ Jasny \ str_starts_with ( $ key , 'HTTP_' ) ) { $ name = $ this -> headerCase ( substr ( $ key , 5 ) ) ; } elseif ( in_array ( $ key , [ 'CONTENT_TYPE' , 'CONTENT_LENGTH' ] ) ) { $ name = $ this -> headerCase ( $ key ) ; } return $ name ; }
Turn a server parameter key to a header name

@param string $key
@return string|null
Turn a server parameter key to a header name