class Protocol::HTTP::Headers
def to_h
Compute a hash table of headers, where the keys are normalized to lower case and the values are normalized according to the policy for that header.
def to_h @indexed ||= @fields.inject({}) do |hash, (key, value)| merge_into(hash, key.downcase, value) hash end end