Sha256: c690ef3cd079de23dd61ba648e269171228057289b67919a9f3f2e5d9a33aad0
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
require "hot_tub" require "hot_tub/clients/client" require "excon" module HotTub class ExconClient < HotTub::Client def initialize(url,options={}) @url = url #make sure we turn on keep-alive @options = {:headers => {"Connection" => "keep-alive"}}.merge(options) @client = Excon.new(url,options) end # pretty sure Excon handles this internally def sanitize_hot_tub_client @client end def close_hot_tub_client @client.socket.close end def dup self.class.new(@url,@options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hot_tub-0.0.2 | lib/hot_tub/clients/excon_client.rb |
hot_tub-0.0.1 | lib/hot_tub/clients/excon_client.rb |