Module: Typhoeus::Request::Actions
- Included in:
- Typhoeus, Typhoeus::Request
- Defined in:
- lib/typhoeus/request/actions.rb
Overview
Instance Method Summary collapse
-
#delete(base_url, options = {}) ⇒ Response
Make a delete request.
-
#get(base_url, options = {}) ⇒ Response
Make a get request.
-
#head(base_url, options = {}) ⇒ Response
Make a head request.
-
#options(base_url, options = {}) ⇒ Response
Make a options request.
-
#patch(base_url, options = {}) ⇒ Response
Make a patch request.
-
#post(base_url, options = {}) ⇒ Response
Make a post request.
-
#put(base_url, options = {}) ⇒ Response
Make a put request.
Instance Method Details
#delete(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a delete request.
72 73 74 |
# File 'lib/typhoeus/request/actions.rb', line 72 def delete(base_url, = {}) Request.new(base_url, .merge(:method => :delete)).run end |
#get(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a get request.
21 22 23 |
# File 'lib/typhoeus/request/actions.rb', line 21 def get(base_url, = {}) Request.new(base_url, .merge(:method => :get)).run end |
#head(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a head request.
88 89 90 |
# File 'lib/typhoeus/request/actions.rb', line 88 def head(base_url, = {}) Request.new(base_url, .merge(:method => :head)).run end |
#options(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a options request.
120 121 122 |
# File 'lib/typhoeus/request/actions.rb', line 120 def (base_url, = {}) Request.new(base_url, .merge(:method => :options)).run end |
#patch(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a patch request.
104 105 106 |
# File 'lib/typhoeus/request/actions.rb', line 104 def patch(base_url, = {}) Request.new(base_url, .merge(:method => :patch)).run end |
#post(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a post request.
37 38 39 |
# File 'lib/typhoeus/request/actions.rb', line 37 def post(base_url, = {}) Request.new(base_url, .merge(:method => :post)).run end |
#put(base_url, options = {}) ⇒ Response
Note:
See Ethon::Easy::Options for more options.
Make a put request.
56 57 58 |
# File 'lib/typhoeus/request/actions.rb', line 56 def put(base_url, = {}) Request.new(base_url, .merge(:method => :put)).run end |