instance method env_name

Ruby on Rails 2.2.3

Last seen in v2.3.18 Private — implementation detail, not part of the public API

Available in: v2.2.3 v2.3.18

Signature

env_name(header_name)

Converts a HTTP header name to an environment variable name.

Parameters

header_name req
Source
# File actionpack/lib/action_controller/headers.rb, line 27
        def env_name(header_name)
          "HTTP_#{header_name.upcase.gsub(/-/, '_')}"
        end

Defined in actionpack/lib/action_controller/headers.rb line 27 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Http::Headers

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close