Method: HTTP::Requestor#post
- Defined in:
- lib/http_requestor.rb
#post(path, data = {}, headers = nil) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/http_requestor.rb', line 33 def post(path,data={},headers=nil) data_to_query(data) if headers == nil response = @http.send_request('POST', path, @defaults[:data]) else response = @http.send_request('POST', path, @defaults[:data], headers) end response end |