class Typhoeus::Request

def hashable_string_for(obj)

def hashable_string_for(obj)
  case obj
  when Hash
    hashable_string_for(obj.sort_by {|sub_obj| sub_obj.first.to_s})
  when Array
    obj.map {|sub_obj| hashable_string_for(sub_obj)}.to_s
  else
    obj.to_s
  end
end