class Excon::Connection
def requests(pipeline_params)
Sends the supplied requests to the destination host using pipelining.
def requests(pipeline_params) pipeline_params.each {|params| params.merge!(:pipeline => true, :persistent => true) } pipeline_params.last.merge!(:persistent => @data[:persistent]) responses = pipeline_params.map do |params| request(params) end.map do |datum| Excon::Response.new(response(datum)[:response]) end if @data[:persistent] if key = responses.last[:headers].keys.detect {|k| k.casecmp('Connection') == 0 } if split_header_value(responses.last[:headers][key]).any? {|t| t.casecmp('close') == 0 } reset end end else reset end responses end