Yeah, hi, glad to be here again.

The downloader is sketched out on each platform and now we can move
on to the arduous task of debugging.  (And I still have to hook it
all into the image cache.)

You can check out samples/simple-downloader.rb to get an idea.

Basically:

  download "http://code.whytheluckystiff.net/entirety/entirety.png";,
    :save => "entirety.png"

Will spawn a download thread.  It's much like XMLHttpRequest in the
browser.  You attach blocks to the download to get back progress
notification.

If you attach a block to `download`, it'll get notified on
completion:

  download "http://code.whytheluckystiff.net/entirety/entirety.png";,
    :save => "entirety.png" do |dl|
      info "That was #{dl.length} bytes"
  end

I'm still working on getting you back headers and response text.
And docs.  All this week.  And request methods and all that.

_why

Reply via email to