Sha256: 98661122a9cdaf1125c4563ca55e2185e1335a63f35f833219829c26640ac72e
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
module Cloudhdr class HTTP < Base class Typhoeus def self.post(url, options={}) perform(:post, url, options) end def self.put(url, options={}) perform(:put, url, options) end def self.get(url, options={}) perform(:get, url, options) end def self.delete(url, options={}) perform(:delete, url, options) end 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cloudhdr-0.0.3 | lib/cloudhdr/http/typhoeus.rb |
cloudhdr-0.0.2 | lib/cloudhdr/http/typhoeus.rb |
cloudhdr-0.0.1 | lib/cloudhdr/http/typhoeus.rb |