Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created April 4, 2010 16:55
Show Gist options
  • Save technicalpickles/355521 to your computer and use it in GitHub Desktop.
Save technicalpickles/355521 to your computer and use it in GitHub Desktop.
@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