Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Common interface for Ruby's HTTP clients
Ruby

Merge pull request #158 from sobrinho/master

Limit the maximum of redirects to prevent infinite redirects
latest commit 601bb299f6
@rogerleite rogerleite authored

README.md

HTTPI

A common interface for Ruby's HTTP libraries.

Documentation | RDoc | 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 httpirb.com

Something went wrong with that request. Please try again.