File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,11 @@ A common interface for Ruby's HTTP libraries.
1111
1212HTTPI is available through [ Rubygems] ( https://rubygems.org/gems/httpi ) and can be installed via:
1313
14- ```
15- $ gem install httpi
16- ```
14+ $ gem install httpi
1715
1816or add it to your Gemfile like this:
1917
20- ```
21- gem 'httpi', '~> 2.1.0'
22- ```
23-
18+ gem 'httpi', '~> 2.1.0'
2419
2520## Usage example
2621
@@ -44,6 +39,20 @@ HTTPI.adapter = :httpclient
4439HTTPI .request(:custom , request)
4540```
4641
42+ ### Rack Mock Adapter
43+
44+ To use the Rack mock adapter, please add the ` rack ` gem to your gemfile.
45+
46+ ### SOCKS Proxy Support
47+
48+ To use the the SOCKS proxy support, please add the ` socksify ` gem to your gemfile, and add the following code:
49+
50+ ``` ruby
51+ require ' socksify'
52+ require ' socksify/http'
53+ ```
54+
55+ to your project.
4756
4857## Documentation
4958
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ Gem::Specification.new do |s|
1616
1717 s . license = 'MIT'
1818
19- s . add_dependency 'rack'
20- s . add_dependency 'socksify'
21-
2219 s . add_development_dependency 'rubyntlm' , '~> 0.3.2'
2320 s . add_development_dependency 'rake' , '~> 13.0'
2421 s . add_development_dependency 'rspec' , '~> 3.5'
Original file line number Diff line number Diff line change 44require "httpi/response"
55require 'kconv'
66require 'socket'
7- require "socksify"
8- require 'socksify/http'
97
108module HTTPI
119 module Adapter
You can’t perform that action at this time.
0 commit comments