class Patron::Session

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

Uploads the contents of a file to the specified +url+ using HTTP PUT.
def put_file(url, filename, headers = {})
  request(:put, url, headers, :file => filename)
end