Sha256: fc66c922ff225679c9992b59de5d487e83b5a222f755062d3d123cc637f7d04a
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
module Xio class HTTP 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={}) options = options.dup if options.delete(:skip_ssl_verify) options[:disable_ssl_peer_verification] = true end if ca_file = options.delete(:ca_file) options[:sslcert] = ca_file end if ca_path = options.delete(:ca_path) options[:capath] = ca_path end ::Typhoeus::Request.send(method, url, options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xio-1.0.0 | lib/xio/http/typhoeus.rb |