Sha256: 6157a46742923df8945a4ad826c8fafc75c922d5323471d0f2d71fa0afca6af2
Contents?: true
Size: 377 Bytes
Versions: 14
Compression:
Stored size: 377 Bytes
Contents
require 'restclient' module RestClient def self.ssl_settings { :verify_ssl => OpenSSL::SSL::VERIFY_PEER, :ssl_ca_file => File.join(File.dirname(__FILE__), 'cert') } end def self.post(url, payload, headers={}, &block) Request.execute(ssl_settings.merge(:method => :post, :url => url, :payload => payload, :headers => headers), &block) end end
Version data entries
14 entries across 14 versions & 2 rubygems