def post(reqs)
    if reqs.nil? or reqs.empty? then
      return []
    end

    if not reqs.first.kind_of? Array then
      reqs = [ reqs ]
    end

    reqs.each_with_index do |r, i|
      if r.kind_of? Request then
        @reqs << r
      elsif r.kind_of? Array then
        @reqs << Request.new(i, r.shift, :post, r.shift)
      end
    end

    return collate_results(perform())
  end
def post(reqs)
    if reqs.nil? or reqs.empty? then
      return []
    end

    if not reqs.first.kind_of? Array then
      reqs = [ reqs ]
    end

    reqs.each_with_index do |r, i|
      if r.kind_of? Request then
        @reqs << r
      elsif r.kind_of? Array then
        @reqs << Request.new(i, r.shift, :post, r.shift)
      end
    end

    return collate_results(perform())
  end
Send multiple post requests

 @param [Array] reqs