Method: Protocol::HTTP::Headers#to_h
- Defined in:
- lib/protocol/http/headers.rb
#to_h ⇒ Object
A hash table of ‘policy.map(values)`
302 303 304 305 306 307 308 |
# File 'lib/protocol/http/headers.rb', line 302 def to_h @indexed ||= @fields.inject({}) do |hash, (key, value)| merge_into(hash, key.downcase, value) hash end end |