In Files

  • lib/restclient/mixin/response.rb

RestClient::Mixin::Response::ClassMethods

Public Instance Methods

beautify_headers(headers) click to toggle source
 
               # File lib/restclient/mixin/response.rb, line 36
def beautify_headers(headers)
        headers.inject({}) do |out, (key, value)|
                beautiful_key = key.gsub(/-/, '_').to_sym
                out[beautiful_key] = beautiful_key == :set_cookie ? value : value.first
        out
        end
end