class Patron::Session
def get_file(url, filename, headers = {})
-
(Patron::Response)-
Parameters:
-
filename(String) -- path to the file to save the response body in -
url(String) -- the URL to fetch
def get_file(url, filename, headers = {}) request(:get, url, headers, :file => filename) end