Sha256: 34e273356f27470ba3792be216e5b56dd032f722a832eef44b4214d728e65c39
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
require "rquest/version" require 'net/http/post/multipart' require 'mimemagic' require 'benchmark' require "rquest/core_overrides" require "rquest/requestor" require 'json' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rquest-2.0 | lib/rquest.rb |
rquest-1.0.4 | lib/rquest.rb |