Created
April 4, 2010 16:55
-
-
Save technicalpickles/355521 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
@client ||= Rack::Client.new(@base_uri) do | |
use Rack::Client::Auth::Basic, @user, @pass | |
use Rack::Client::ParseXml | |
run Rack::Client::Handler::NetHTTP | |
end | |
@client.get('/foo.xml') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment