Sha256: fe64481b1a67a18e9c1ac5a2c15d02603fef95979c4d4a5fbf43419142230b30

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

class HTTPClientAdapter < HTTPBaseAdapter
  def send_get_request
    ::HTTPClient.get(parse_uri(true), header: @headers)
  end

  def send_head_request
    ::HTTPClient.head(parse_uri, header: @headers)
  end

  def send_post_request
    ::HTTPClient.post(parse_uri, body: @data, header: @headers)
  end

  def send_post_form_request
    ::HTTPClient.post(parse_uri, body: @params, header: @headers)
  end

  def send_multipart_post_request
    send_post_form_request
  end

  def self.response_should_be
    HTTP::Message
  end

  def logs_form_data?
    false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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