savonrb / Httpi
Licence: mit
Common interface for Ruby's HTTP clients
Stars: ✭ 251
Programming Languages
ruby
36898 projects - #4 most used programming language
HTTPI
A common interface for Ruby's HTTP libraries.
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].