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