Skip to content
Common interface for Ruby's HTTP clients
Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec Add tests for different timeout options to all adapters Aug 27, 2018
.gitignore Ignore rubinius files Oct 4, 2012
.rspec
.travis.yml
CHANGELOG.md
Gemfile
LICENSE added MIT license Sep 24, 2010
README.md
Rakefile
httpi.gemspec

README.md

HTTPI

A common interface for Ruby's HTTP libraries.

Documentation | Mailing list

Build Status Gem Version Code Climate Coverage Status

Installation

HTTPI is available through Rubygems and can be installed via:

$ gem install httpi

or add it to your Gemfile like this:

gem 'httpi', '~> 2.1.0'

Usage example

require "httpi"

# create a request object
request = HTTPI::Request.new
request.url = "http://example.com"

# and pass it to a request method
HTTPI.get(request)

# use a specific adapter per request
HTTPI.get(request, :curb)

# or specify a global adapter to use
HTTPI.adapter = :httpclient

# and execute arbitary requests
HTTPI.request(:custom, request)

Documentation

Continue reading at https://www.rubydoc.info/gems/httpi

You can’t perform that action at this time.