class Patron::Session
def put_file(url, filename, headers = {})
-
(Patron::Response)-
Parameters:
-
headers(Hash) -- the hash of header keys to values -
filename(String) -- path to the file to be uploaded -
url(String) -- the URL to fetch
def put_file(url, filename, headers = {}) request(:put, url, headers, :file => filename) end