class Roda::RodaPlugins::RequestHeaders::Headers

def [](key)

Returns the value for the given key mapped to @env
def [](key)
  @env[env_name(key)]
end

def env_name(key)

Convert a HTTP header name into an environment variable name
def env_name(key)
  key = key.to_s.upcase
  key.tr!('-', '_')
  key = 'HTTP_' + key unless CGI_VARIABLES.include?(key)
  key
end

def initialize(env)

def initialize(env)
  @env = env
end