Method: Protocol::HTTP::Headers#to_h
- Defined in:
- lib/protocol/http/headers.rb
#to_h ⇒ Object
A hash table of ‘policy.map(values)`
207 208 209 210 211 212 213 |
# File 'lib/protocol/http/headers.rb', line 207 def to_h @indexed ||= @fields.inject({}) do |hash, (key, value)| merge_into(hash, key.downcase, value) hash end end |