class RestClient::Request

Public Instance Methods

net_http_object(hostname, port)
net_http_object_with_socksify(hostname, port) click to toggle source
# File lib/rest_tor/rest_client.rb, line 5
def net_http_object_with_socksify(hostname, port)
  p_uri = proxy_uri
  if p_uri && p_uri.scheme =~ /^socks5?$/i
    return Net::HTTP.SOCKSProxy(p_uri.hostname, p_uri.port).new(hostname, port)
  end

  net_http_object_without_socksify(hostname, port)
end
Also aliased as: net_http_object
net_http_object_without_socksify(hostname, port)
Alias for: net_http_object