class ActionDispatch::Http::Headers
def env_name(key)
Experimental RBS support (using type sampling data from the type_fusion
project).
def env_name: (String key) -> String
This signature was generated using 4 samples from 1 application.
Converts an HTTP header name to an environment variable name if it is
def env_name(key) key = key.to_s if HTTP_HEADER.match?(key) key = key.upcase key.tr!("-", "_") key.prepend("HTTP_") unless CGI_VARIABLES.include?(key) end key end