evdispatch

Get Version

0.1.2

→ ‘evdispatch’

What

A library for making http requests in parallel. Uses the libev library to run an event loop on a background posix thread, that uses libcurls multi interface to issue HTTP requests.

Installing

sudo gem install evdispatch

The basics

Demonstration of usage

require 'rubygems'
require 'evdispatch'

# create a new dispatch loop
d = Evdispatch::Loop.new

# start the event loop thread
d.start

# send a dispatch http request and store a handle to the request
google_id = d.request_http("http://www.google.com/")

# do some processing and later on check for the response
response = d.response( google_id )

puts response[:response_time]
puts response[:body]

# sometime later you can stop the event loop
d.stop

Forum

http://groups.google.com/group/evdispatch

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

The trunk repository is http://evdispatch.rubyforge.org/svn/trunk for anonymous access.

F.A.Q.

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. See the forum

Xullicious
Theme extended from Paul Battley