Created
November 4, 2009 03:18
-
-
Save hughevans/225747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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