mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 07:04:53 +00:00
Testing use of native http
This commit is contained in:
@@ -24,6 +24,14 @@ module Paapi
|
|||||||
@condition = condition
|
@condition = condition
|
||||||
self.market = market
|
self.market = market
|
||||||
@partner_tag = partner_tag if !partner_tag.nil?
|
@partner_tag = partner_tag if !partner_tag.nil?
|
||||||
|
|
||||||
|
#if defined?(HTTPX)
|
||||||
|
# @http = HTTPX.plugin(:persistent)
|
||||||
|
#elsif defined?(HTTP)
|
||||||
|
@http = HTTP::Client.new
|
||||||
|
#else
|
||||||
|
# @http = nil
|
||||||
|
#end
|
||||||
end
|
end
|
||||||
|
|
||||||
def market=(a_market)
|
def market=(a_market)
|
||||||
|
|||||||
Reference in New Issue
Block a user