sendgrid / ruby-http-client

SendGrid's Ruby HTTP Client for calling APIs
https://sendgrid.com
MIT License
23 stars 54 forks source link

Headers on Response #3

Closed hipsterelitist closed 8 years ago

hipsterelitist commented 8 years ago

Issue Summary

Hey, would it possible to get a usable version of the headers from a Sendgrid::Client response? Right now it is just dumping the contents of inspect, which is awfully awkward to parse into something usable. Seems like an oversight.

https://github.com/sendgrid/ruby-http-client/blob/f3bad61ec64648ec6846159f99ceb1c8fae01d21/lib/ruby_http_client.rb#L16

@headers = response.to_hash.inspect
thinkingserious commented 8 years ago

Great catch @hipsterelitist!