Class: ActionDispatch::Http::Headers
- Defined in:
- actionpack/lib/action_dispatch/http/headers.rb
Constant Summary collapse
- @@env_cache =
Hash.new { |h,k| h[k] = "HTTP_#{k.upcase.gsub(/-/, '_')}" }
Instance Method Summary collapse
- #[](header_name) ⇒ Object
-
#initialize(*args) ⇒ Headers
constructor
A new instance of Headers.
Methods inherited from Hash
#as_json, #assert_valid_keys, #deep_dup, #deep_merge, #deep_merge!, #diff, #encode_json, #except, #except!, #extract!, #extractable_options?, from_xml, #reverse_merge, #reverse_merge!, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_param, #to_xml, #with_indifferent_access
Constructor Details
Instance Method Details
#[](header_name) ⇒ Object
16 17 18 19 20 21 22 |
# File 'actionpack/lib/action_dispatch/http/headers.rb', line 16 def [](header_name) if include?(header_name) super else super(env_name(header_name)) end end |