Skip to content

Instantly share code, notes, and snippets.

@hughevans
Created November 4, 2009 03:18
Show Gist options
  • Save hughevans/225747 to your computer and use it in GitHub Desktop.
Save hughevans/225747 to your computer and use it in GitHub Desktop.
# An experiment at using typhoeus with ActiveResource. It's currently not very
# useful (in fact it seems slower). Somehow using the queueing will be the trick
require 'typhoeus'
module ActiveResource
class Connection
def get(path, headers = {})
format.decode(Typhoeus::Request.get(@site.host + path, :headers => authorization_header).body)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment