Module: HTTPalooza::API
- Included in:
- Lineup
- Defined in:
- lib/httpalooza/api.rb
Instance Method Summary collapse
- #delete(url, options = {}, &block) ⇒ Object
- #get(url, options = {}, &block) ⇒ Object
- #head(url, options = {}, &block) ⇒ Object
- #post(url, options = {}, &block) ⇒ Object
- #put(url, options = {}, &block) ⇒ Object
Instance Method Details
#delete(url, options = {}, &block) ⇒ Object
15 16 17 |
# File 'lib/httpalooza/api.rb', line 15 def delete(url, = {}, &block) run! Request.new(url, :delete, .slice(:headers, :params, :payload), &block) end |
#get(url, options = {}, &block) ⇒ Object
3 4 5 |
# File 'lib/httpalooza/api.rb', line 3 def get(url, = {}, &block) run! Request.new(url, :get, .slice(:headers, :params, :payload), &block) end |
#head(url, options = {}, &block) ⇒ Object
19 20 21 |
# File 'lib/httpalooza/api.rb', line 19 def head(url, = {}, &block) run! Request.new(url, :head, .slice(:headers, :params, :payload), &block) end |