Module: Net::HTTPHeader
- Defined in:
- lib/util.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/util.rb', line 36 def to_hash new_headers = @header.dup @header.each do |k,v| new_headers.delete(k) new_headers[k.to_camel_case] = v end new_headers end |