class Patron::Session

def get_file(url, filename, headers = {})

content at the URL is downloaded directly into the specified file.
Retrieve the contents of the specified +url+ as with #get, but the
def get_file(url, filename, headers = {})
  request(:get, url, headers, :file => filename)
end