Sha256: d84d8eba5ad684972c3eec9234055578ab78e7590a444a2833d36716b5481f5b

Contents?: true

Size: 645 Bytes

Versions: 13

Compression:

Stored size: 645 Bytes

Contents

class Zencoder
  class HTTP < Zencoder
    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

13 entries across 13 versions & 1 rubygems

Version Path
zencoder-2.2.2 lib/zencoder/http/typhoeus.rb
zencoder-2.2.1 lib/zencoder/http/typhoeus.rb
zencoder-2.2.0 lib/zencoder/http/typhoeus.rb
zencoder-2.1.15 lib/zencoder/http/typhoeus.rb
zencoder-2.1.14 lib/zencoder/http/typhoeus.rb
zencoder-2.1.13 lib/zencoder/http/typhoeus.rb
zencoder-2.1.12 lib/zencoder/http/typhoeus.rb
zencoder-2.1.11 lib/zencoder/http/typhoeus.rb
zencoder-2.1.10 lib/zencoder/http/typhoeus.rb
zencoder-2.1.9 lib/zencoder/http/typhoeus.rb
zencoder-2.1.8 lib/zencoder/http/typhoeus.rb
zencoder-2.1.7 lib/zencoder/http/typhoeus.rb
zencoder-2.1.6 lib/zencoder/http/typhoeus.rb