Sha256: e2399eb879fd535493ae718aa3832f56728ee71d1ba6760c6bc55beaaafee395
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
module Zencoder 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 ::Typhoeus::Request.send(method, url, options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zencoder-2.4.6 | lib/zencoder/http/typhoeus.rb |