Method: HTTP::Requestor#get
- Defined in:
- lib/http_requestor.rb
#get(path, data = {}, headers = nil) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/http_requestor.rb', line 23 def get(path,data={},headers=nil) data_to_query(data) if headers == nil response = @http.send_request('GET', path, @defaults[:data]) else response = @http.send_request('GET', path, @defaults[:data], headers) end response end |