Sha256: 376cd49de1d4a08f7ebded103a0e5bdcfd4ad512b90e03f03aa2b7afe67e10fd

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 Bytes

Contents

require 'uri'

class HTTPBaseAdapter
  def initialize(host, port, path, headers, data, params, protocol = 'http')
    @host = host
    @port = port
    @path = path
    @headers = headers
    @data = data
    @params = params
    @protocol = protocol
  end

  def logs_data?
    true
  end

  def parse_uri
    URI.parse("#{@protocol}://#{@host}:#{@port}#{@path}")
  end

  def expected_response_body
    "\n<html>"
  end

  def self.is_libcurl?
    false
  end

  def self.should_log_headers?
    true
  end

  def query_string
    URI.encode_www_form(@data)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
binnacle-0.5.0 spec/adapters/http_base_adapter.rb
binnacle-0.4.9 spec/adapters/http_base_adapter.rb
binnacle-0.4.8 spec/adapters/http_base_adapter.rb