class RestClient::Request
Public Instance Methods
net_http_object(hostname, port)
Also aliased as: net_http_object_without_socksify
Alias for: net_http_object_with_socksify
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