class Cloudhdr::HTTP::Typhoeus
Public Class Methods
delete(url, options={})
click to toggle source
# File lib/cloudhdr/http/typhoeus.rb, line 17 def self.delete(url, options={}) perform(:delete, url, options) end
get(url, options={})
click to toggle source
# File lib/cloudhdr/http/typhoeus.rb, line 13 def self.get(url, options={}) perform(:get, url, options) end
perform(method, url, options={})
click to toggle source
# File lib/cloudhdr/http/typhoeus.rb, line 21 def self.perform(method, url, options={}) if options.delete(:skip_ssl_verify) options[:disable_ssl_peer_verification] = true end ::Typhoeus::Request.send(method, url, options) end
post(url, options={})
click to toggle source
# File lib/cloudhdr/http/typhoeus.rb, line 5 def self.post(url, options={}) perform(:post, url, options) end
put(url, options={})
click to toggle source
# File lib/cloudhdr/http/typhoeus.rb, line 9 def self.put(url, options={}) perform(:put, url, options) end