Module: ApiClient::Dispatcher::Typhoeus
- Defined in:
- lib/api-client/dispatcher/typhoeus.rb
Overview
ApiClient::Dispatcher::Typhoeus provides methods to make requests using typhoeus
Class Method Summary collapse
-
.delete(url, header = {}) ⇒ Typhoeus::Request
Make a delete request and returns it.
-
.get(url, header = {}) ⇒ Typhoeus::Request
Make a get request and returns it.
-
.patch(url, args, header = {}) ⇒ Typhoeus::Request
Make a patch request and returns it.
-
.post(url, args, header = {}) ⇒ Typhoeus::Request
Make a post request and returns it.
-
.put(url, args, header = {}) ⇒ Typhoeus::Request
Make a put request and returns it.
Class Method Details
.delete(url, header = {}) ⇒ Typhoeus::Request
Make a delete request and returns it.
47 48 49 |
# File 'lib/api-client/dispatcher/typhoeus.rb', line 47 def self.delete(url, header = {}) ::Typhoeus.delete(url, :headers => ApiClient.config.header.merge(header)) end |
.get(url, header = {}) ⇒ Typhoeus::Request
Make a get request and returns it.
8 9 10 |
# File 'lib/api-client/dispatcher/typhoeus.rb', line 8 def self.get(url, header = {}) ::Typhoeus.get(url, :headers => ApiClient.config.header.merge(header)) end |
.patch(url, args, header = {}) ⇒ Typhoeus::Request
Make a patch request and returns it.
38 39 40 |
# File 'lib/api-client/dispatcher/typhoeus.rb', line 38 def self.patch(url, args, header = {}) ::Typhoeus.patch(url, :body => args, :headers => ApiClient.config.header.merge(header)) end |