Sha256: fdf4c8bda80be283ad4733363be4892adef3d04b6baa517f8948d83df0ff9496

Contents?: true

Size: 235 Bytes

Versions: 4

Compression:

Stored size: 235 Bytes

Contents

require 'httparty'

class HTTPartySekken
  include HTTParty
  read_timeout 3 * 60

  def get(url)
    self.class.get(url).body
  end

  def post(url, headers, body)
    self.class.post(url, headers: headers, body: body).body
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soapy_cake-0.3.4 lib/soapy_cake/client/http_client.rb
soapy_cake-0.3.3 lib/soapy_cake/client/http_client.rb
soapy_cake-0.3.2 lib/soapy_cake/client/http_client.rb
soapy_cake-0.3.1 lib/soapy_cake/client/http_client.rb