Method: HTTP::Requestor#options

Defined in:
lib/http_requestor.rb

#options(path, data = {}, headers = nil) ⇒ Object



63
64
65
66
67
68
69
70
71
# File 'lib/http_requestor.rb', line 63

def options(path,data={},headers=nil)
  data_to_query(data)
  if headers == nil
    response = @http.send_request('OPTIONS', path, @defaults[:data])
  else
    response = @http.send_request('OPTIONS', path, @defaults[:data], headers)
  end
  response
end