
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
faraday_adapter_socks
Advanced tools
Faraday adapter for socks proxy
Add this line to your application's Gemfile:
gem 'faraday_adapter_socks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install faraday_adapter_socks
Adapter symbol :net_http_socks
should be set to faraday_adapter
Example: faraday connection
require 'faraday_adapter_socks'
options = { proxy: { uri: URI.parse("socks://#{your_socks_server}") } }
conn = Faraday.new(url, options) do |faraday|
faraday.request :url_encoded
faraday.adapter :net_http_socks # please assign ":net_http_socks" adapter
end
response = conn.get do |req|
req.url request_path
end
Example: get oauth2 client using intridea/oauth2
require 'faraday_adapter_socks'
client_options = { connection_opts: { proxy: { uri: URI.parse("socks://#{your_socks_server}") } }
client = ::OAuth2::Client.new(client_id, client_secret, client_options) do |conn|
conn.request :url_encoded
conn.response :json, content_type: /\bjson$/
conn.adapter :net_http_socks # please assign ":net_http_socks" adapter
end
Setup
$ git clone https://github.com/goldeneggg/faraday_adapter_socks.git
$ bin/setup
Run tests
$ bundle exec rake spec
Debug using pry
$ bin/console
To release a new version, update the version number in version.rb
.
Bug reports and pull requests are welcome on GitHub at issues
FAQs
Unknown package
We found that faraday_adapter_socks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.