A common interface for Ruby's HTTP libraries.
HTTPI is available through Rubygems and can be installed via:
$ gem install httpi
or add it to your Gemfile like this:
gem 'httpi', '~> 3.0.0'
require "httpi" # create a request object request = ::. request.url = "http://example.com" # and pass it to a request method .(request) # use a specific adapter per request .(request, :curb) # or specify a global adapter to use .adapter = :httpclient # and execute arbitary requests .(:custom, request)
SOCKS Proxy Support
To use the the SOCKS proxy support, please add the
socksify gem to your gemfile, and add the following code:
require 'socksify' require 'socksify/http'
to your project.
Continue reading at https://www.rubydoc.info/gems/httpi