Sha256: 6a84d2e72ada0c555660a9223c895473d40f1899eb5c8342525dbbb3e5259a46

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

require "rquest/version"
require 'net/http/post/multipart'
require 'mimemagic'
require 'benchmark'
require "rquest/core_overrides"
require "rquest/requestor"

module Rquest
	class << self
		def new( settings )
			Requestor.new( settings )
		end

		def client_class_for_verb( verb, use_multipart=false )
			v = verb.to_s.capitalize
			unless use_multipart
				Object.const_get("Net::HTTP::#{v}")
			else
				Object.const_get("Net::HTTP::#{v}::Multipart")
			end
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rquest-1.0.3 lib/rquest.rb
rquest-1.0.2 lib/rquest.rb
rquest-1.0.1 lib/rquest.rb
rquest-1.0.0 lib/rquest.rb