Method: HTTP::Requestor#delete
- Defined in:
- lib/http_requestor.rb
#delete(path, data = {}, headers = nil) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/http_requestor.rb', line 53 def delete(path,data={},headers=nil) data_to_query(data) if headers == nil response = @http.send_request('DELETE', path, @defaults[:data]) else response = @http.send_request('DELETE', path, @defaults[:data], headers) end response end |