class Sibit::HttpProxy
This HTTP client with proxy.
Public Class Methods
new(addr)
click to toggle source
# File lib/sibit/http.rb, line 43 def initialize(addr) @host, @port = addr.split(':') end
Public Instance Methods
client(uri)
click to toggle source
# File lib/sibit/http.rb, line 47 def client(uri) http = Net::HTTP.new(uri.host, uri.port, @host, @port.to_i) http.use_ssl = true http.read_timeout = 240 http end