Sha256: 0e7c34ce7a44179efa245624a1239b83e9c16491a4432f7f1c9fdd1edc6b2c9e
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
class TyphoeusAdapter < HTTPBaseAdapter def send_get_request #response = Typhoeus.get(parse_uri.to_s, headers: @headers, params: @data) hydra = Typhoeus::Hydra.new hydra.queue(Typhoeus::Request.new(parse_uri.to_s, headers: @headers, params: @data)) hydra.run end def send_post_request Typhoeus.post(parse_uri.to_s, body: query_string, headers: @headers) end def send_post_form_request Typhoeus.post(parse_uri.to_s, body: @params, headers: @headers) end def send_multipart_post_request send_post_form_request end def self.is_libcurl? true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
binnacle-0.5.0 | spec/adapters/typhoeus_adapter.rb |
binnacle-0.4.9 | spec/adapters/typhoeus_adapter.rb |
binnacle-0.4.8 | spec/adapters/typhoeus_adapter.rb |