Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Curl::Multi version 0.1
Keith Rarick
11/9/2007 10:27:00 PM
== Announcing Curl::Multi version 0.1 ==
This is the first release of Curl::Multi, supporting just the basics.
This release uses RubyInline to help with the C interface.
== What is Curl::Multi? ==
Curl::Multi provides very high-level Ruby bindings for the libcurl multi
interface.
It was originally written for use by www.causesonfacebook.com to process
many concurrent http requests. Curl::Multi is written and maintanied by
Kristján Pétursson and Keith Rarick.
See
http://curl-multi.ruby...
for more info.
== The basics ==
require 'curl-multi'
curl = Curl::Multi.new
on_success = lambda do |body|
puts body
end
on_failure = lambda do |ex|
puts 'Failure.'
puts ex
end
curl.get('
http://www.example...
, on_success, on_failure)
curl.select([], []) while curl.size > 0
Thereâ??s not much more to the interface. A good thing, too, because we
donâ??t really have any documentation yet. Patches are most welcome!
== Forum ==
http://groups.google.com/group/ruby-...
http://curl-multi.ruby...
Keith Rarick, 9th November 2007
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Curl::Multi version 0.1
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password