def wrap(http_response)
      OpenStruct.new.tap do |obj|
        obj.code    = http_response.code.to_i
        obj.body    = http_response.body
        obj.headers = {}
        http_response.each_header{|k,v| obj.headers[k] = v }
      end
    end
def wrap(http_response)
      OpenStruct.new.tap do |obj|
        obj.code    = http_response.code.to_i
        obj.body    = http_response.body
        obj.headers = {}
        http_response.each_header{|k,v| obj.headers[k] = v }
      end
    end
HTTPI doesn't support multipart posts. We can work around it by using another gem
 and handing off something that looks like a HTTPI response