Module: HTTPalooza::API
- Included in:
- Lineup
- Defined in:
- lib/httpalooza/api.rb
Instance Method Summary collapse
-
#delete(url, options = {}, &block) ⇒ Object
Peform an HTTP DELETE request with the assembled Lineup.
-
#get(url, options = {}, &block) ⇒ Object
Peform an HTTP GET request with the assembled Lineup.
-
#head(url, options = {}, &block) ⇒ Object
Peform an HTTP HEAD request with the assembled Lineup.
-
#post(url, options = {}, &block) ⇒ Object
Peform an HTTP POST request with the assembled Lineup.
-
#put(url, options = {}, &block) ⇒ Object
Peform an HTTP PUT request with the assembled Lineup.
Instance Method Details
#delete(url, options = {}, &block) ⇒ Object
Peform an HTTP DELETE request with the assembled Lineup.
options [Hash] the request options
43 44 45 |
# File 'lib/httpalooza/api.rb', line 43 def delete(url, = {}, &block) run! Request.new(url, :delete, .slice(:headers, :params, :payload), &block) end |
#get(url, options = {}, &block) ⇒ Object
Peform an HTTP GET request with the assembled Lineup.
options [Hash] the request options
10 11 12 |
# File 'lib/httpalooza/api.rb', line 10 def get(url, = {}, &block) run! Request.new(url, :get, .slice(:headers, :params, :payload), &block) end |
#head(url, options = {}, &block) ⇒ Object
Peform an HTTP HEAD request with the assembled Lineup.
options [Hash] the request options
54 55 56 |
# File 'lib/httpalooza/api.rb', line 54 def head(url, = {}, &block) run! Request.new(url, :head, .slice(:headers, :params, :payload), &block) end |