Sha256: 92faf58bf088e61b4125c318dda6e00dbad25b257c836e3e4b18d338cb7a38f2

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require 'excon'
class TyphoeusAdapter < HTTPBaseAdapter
  def send_get_request
    Typhoeus.get(parse_uri(true).to_s, headers: @headers)
  end

  def send_head_request
    Typhoeus.head(parse_uri.to_s, headers: @headers)
  end

  def send_post_request
    Typhoeus.post(parse_uri.to_s, body: @data, 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

2 entries across 2 versions & 1 rubygems

Version Path
httplog-1.3.1 spec/adapters/typhoeus_adapter.rb
httplog-1.3.0 spec/adapters/typhoeus_adapter.rb