Methods
Public Class methods
[ show source ]
# File lib/action_controller/headers.rb, line 5
5: def initialize(constructor = {})
6: if constructor.is_a?(Hash)
7: super()
8: update(constructor)
9: else
10: super(constructor)
11: end
12: end
Public Instance methods
[ show source ]
# File lib/action_controller/headers.rb, line 14
14: def [](header_name)
15: if include?(header_name)
16: super
17: else
18: super(normalize_header(header_name))
19: end
20: end