class Patron::Session

def put(url, data, headers = {})

Returns:
  • (Patron::Response) -

Parameters:
  • headers (Hash) -- the hash of header keys to values
  • data (#to_s, #to_path) -- an object that can be converted to a String
  • url (String) -- the URL to fetch

Other tags:
    Todo: - inconsistency with "post" - Hash not accepted
def put(url, data, headers = {})
  request(:put, url, headers, :data => data)
end