Sha256: 2043ab2ccb9ed5b3915b966746d4799bbc648c9729be64d11ec9e914557b33cc

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

class HTTPClientAdapter < HTTPBaseAdapter
  def send_get_request
    ::HTTPClient.get(parse_uri, 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
httplog-1.2.2 spec/adapters/httpclient_adapter.rb
httplog-1.2.1 spec/adapters/httpclient_adapter.rb
httplog-1.2.0 spec/adapters/httpclient_adapter.rb
httplog-1.1.1 spec/adapters/httpclient_adapter.rb
httplog-1.1.0 spec/adapters/httpclient_adapter.rb
httplog-1.0.3 spec/adapters/httpclient_adapter.rb