class Xhttp::Requests

Public Instance Methods

get(url, params={}, headers={}) click to toggle source
# 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={}) click to toggle source
# File lib/xhttp.rb, line 13
def post(url, data={}, headers={})
  obj = Http::POST.new(url, data, headers)
  obj.request
  obj
end