Class: ActionDispatch::Http::Headers
- Extended by:
- ActiveSupport::Memoizable
- Defined in:
- actionpack/lib/action_dispatch/http/headers.rb
Instance Method Summary collapse
- #[](header_name) ⇒ Object
-
#initialize(*args) ⇒ Headers
constructor
A new instance of Headers.
Methods included from ActiveSupport::Memoizable
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
17 18 19 20 21 22 23 |
# File 'actionpack/lib/action_dispatch/http/headers.rb', line 17 def [](header_name) if include?(header_name) super else super(env_name(header_name)) end end |