HTTParty是一个Ruby gem,它使用友好的DSL封装了Net::HTTP: require 'httparty' HTTParty.get('https://example.com', http_proxyaddr: 'gateway.proxied.com', http_proxyport: 1080, scheme: 'socks5h' ) socks5h方案将HTTP和DNS都通过Proxied的运营商IP路由。