Module: RestClient2
- Includes:
- RestClient
- Defined in:
- lib/cleaver_client.rb
Class Method Summary collapse
Class Method Details
.get(url, headers = {}, &block) ⇒ Object
12 13 14 15 |
# File 'lib/cleaver_client.rb', line 12 def self.get(url, headers={}, &block) Request.execute(:method => :get, :url => url, :headers => headers, :timeout => nil, :open_timeout => nil, &block) end |
.post(url, payload, headers = {}, &block) ⇒ Object
17 18 19 20 |
# File 'lib/cleaver_client.rb', line 17 def self.post(url, payload, headers={}, &block) Request.execute(:method => :post, :url => url, :payload => payload, :headers => headers, :timeout => nil, :open_timeout => nil, &block) end |