actionpack/lib/action_dispatch/http/headers.rb
# Converts a HTTP header name to an environment variable name if it is
# not contained within the headers hash.
Converts a HTTP header name to an environment variable name if it is
not contained within the headers hash.
Converts a HTTP header name to an environment variable name if it is not contained within the headers hash .
def env_name(key)
        key = key.to_s
        if key =~ HTTP_HEADER
          key = key.upcase.tr('-', '_')
          key = "HTTP_" + key unless CGI_VARIABLES.include?(key)
        end
        key
      end
def env_name ( key ) key = key . to_s if key =~ HTTP_HEADER key = key . upcase . tr ( '-' , '_' ) key = "HTTP_" + key unless CGI_VARIABLES . include? ( key ) end key end
Converts a HTTP header name to an environment variable name if it is
not contained within the headers hash.
Converts a HTTP header name to an environment variable name if it is not contained within the headers hash .
key
<not_specific>