Method: HTTP::Requestor#put

Defined in:
lib/http_requestor.rb

#put(path, data = {}, headers = nil) ⇒ Object



43
44
45
46
47
48
49
50
51
# File 'lib/http_requestor.rb', line 43

def put(path,data={},headers=nil)
  data_to_query(data)
  if headers == nil
    response = @http.send_request('PUT', path, @defaults[:data])
  else
    response = @http.send_request('PUT', path, @defaults[:data], headers)
  end
  response
end