[ANN] net-http-pipeline 1.0

E

Eric Hodel

net-http-pipeline version 1.0 has been released!

* http://seattlerb.rubyforge.org/net-http-pipeline
* http://github.com/drbrain/net-http-pipeline

An HTTP/1.1 pipelining implementation atop Net::HTTP. A pipelined connection
sends multiple requests to the HTTP server without waiting for the responses.
The server will respond in-order.

== Example:

require 'net/http/pipeline'

Net::HTTP.start 'localhost' do |http|
req1 = Net::HTTP::Get.new '/'
req2 = Net::HTTP::Get.new '/'
req3 = Net::HTTP::Get.new '/'

http.pipeline [req1, req2, req3] do |res|
puts res.code
puts res.body[0..60].inspect
puts
end
end

=== 1.0 / 2011-03-29

* API change
* Net::HTTP::pipeline#pipeline requires an Array of Net::HTTPRequests now.
* Major enhancement
* If a sequence of requests contains a non-idempotent request #pipeline now
waits for a response to the previous request.
* Minor enhancements
* Check for HTTP/1.1 and persistent connections before attempting
pipelining
* Added Net::HTTP#persistent= to avoid pipelining-capability check.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top