Sha256: da65f0163b3480f4c0e80698f0e1f6fb819f97e5a87bfd5c4a0b503d1e7dfb3b

Contents?: true

Size: 582 Bytes

Versions: 5

Compression:

Stored size: 582 Bytes

Contents

require 'typhoeus'

module HttpEventLogger
  module Test
    module Driver

      class Typhoeus < HttpEventLogger::Test::Driver::Base

        class << self

          def is_libcurl?
            true
          end

          # Note: Last supported Typhoeus version is 0.5.3
          def expected_response_body
            ""
          end

        end

        def send_get_request
          ::Typhoeus.get(uri, headers: @headers)
        end

        def send_post_request
          ::Typhoeus.post(uri, body: @data, headers: @headers)
        end

      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
http_event_logger-0.1.0 ./spec/support/driver/typhoeus.rb
http_event_logger-0.1.0.rc4 ./spec/support/driver/typhoeus.rb
http_event_logger-0.1.0.rc3 ./spec/support/driver/typhoeus.rb
http_event_logger-0.1.0.rc2 ./spec/support/driver/typhoeus.rb
http_event_logger-0.1.0.rc1 ./spec/support/driver/typhoeus.rb