Class: Xhttp::Requests
- Inherits:
-
Object
- Object
- Xhttp::Requests
- Defined in:
- lib/xhttp.rb
Instance Method Summary collapse
Instance Method Details
#get(url, params = {}, headers = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/xhttp.rb', line 7 def get(url, params={}, headers={}) obj = Http::GET.new(url, params, headers) obj.request obj end |
#post(url, data = {}, headers = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/xhttp.rb', line 13 def post(url, data={}, headers={}) obj = Http::POST.new(url, data, headers) obj.request obj end |