Sha256: a77c01ea3c32e276e8d1d8b3b55647ffef74f3f7df776852bf4dc9f17d7557a8

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'http'
class HTTPAdapter < HTTPBaseAdapter
  def send_get_request
    HTTP.headers(@headers).get(parse_uri.to_s)
  end

  def send_post_request
    HTTP.headers(@headers).post(parse_uri.to_s, body: query_string)
  end

  def send_post_form_request
    HTTP.headers(@headers).post(parse_uri.to_s, form: @params)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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