Sha256: 34f05dbe458f344779194ab6a9c582dd548a9270d4f68360932417120ac73cf9

Contents?: true

Size: 635 Bytes

Versions: 6

Compression:

Stored size: 635 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={})
        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

6 entries across 6 versions & 1 rubygems

Version Path
zencoder-2.4.5 lib/zencoder/http/typhoeus.rb
zencoder-2.4.4 lib/zencoder/http/typhoeus.rb
zencoder-2.4.3 lib/zencoder/http/typhoeus.rb
zencoder-2.4.2 lib/zencoder/http/typhoeus.rb
zencoder-2.4.1 lib/zencoder/http/typhoeus.rb
zencoder-2.4.0 lib/zencoder/http/typhoeus.rb