HTTPI
A common interface for Ruby's HTTP libraries. This project is now in maintenance mode. For new projects, we recommend faraday.
Documentation

Installation
HTTPI is available through Rubygems and can be installed via:
$ gem install httpi
or add it to your Gemfile like this:
gem 'httpi', '~> 4.0.0'
Usage example
require "httpi"
request = HTTPI::Request.new
request.url = "http://example.com"
HTTPI.get(request)
HTTPI.get(request, :curb)
HTTPI.adapter = :httpclient
HTTPI.request(:custom, request)
HTTPI.adapter = :httpclient
HTTPI.adapter_client_setup = proc do |x|
x.ssl_config.set_default_paths
x.force_basic_auth = true
end
HTTPI.get(request) do |x|
x.force_basic_auth = false
end
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.
Documentation
Continue reading at https://www.rubydoc.info/gems/httpi