Sha256: 90a7adc5b85d502a4fb51eb42d9a3a5545e42eba59b733769a458be833d6bb13
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
__DIR__ = File.dirname(__FILE__) $LOAD_PATH.unshift __DIR__ unless $LOAD_PATH.include?(__DIR__) || $LOAD_PATH.include?(File.expand_path(__DIR__)) require 'openssl' require 'socket' require 'uri' require 'excon/connection' require 'excon/errors' require 'excon/response' module Excon unless const_defined?(:VERSION) VERSION = '0.0.22' end CHUNK_SIZE = 1048576 # 1 megabyte def self.new(url, params = {}) Excon::Connection.new(url, params) end %w{connect delete get head options post put trace}.each do |method| eval <<-DEF def self.#{method}(url, params = {}, &block) new(url).request(params.merge!(:method => '#{method.upcase}'), &block) end DEF end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
excon-0.0.22 | lib/excon.rb |