Skip to content

Commit

Permalink
Use external httpclient adapter (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Jul 4, 2021
1 parent 8ca6a7e commit 274f5fa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 156 deletions.
1 change: 1 addition & 0 deletions faraday.gemspec
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'faraday-em_http', '~> 1.0'
spec.add_dependency 'faraday-em_synchrony', '~> 1.0'
spec.add_dependency 'faraday-excon', '~> 1.1'
spec.add_dependency 'faraday-httpclient', '~> 1.0.1'
spec.add_dependency 'faraday-net_http', '~> 1.0'
spec.add_dependency 'faraday-net_http_persistent', '~> 1.1'
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
Expand Down
1 change: 1 addition & 0 deletions lib/faraday.rb
Expand Up @@ -30,6 +30,7 @@
require 'faraday/em_http'
require 'faraday/em_synchrony'
require 'faraday/excon'
require 'faraday/httpclient'
require 'faraday/net_http'
require 'faraday/net_http_persistent'

Expand Down
3 changes: 1 addition & 2 deletions lib/faraday/adapter.rb
Expand Up @@ -13,8 +13,7 @@ class Adapter
test: [:Test, 'test'],
typhoeus: [:Typhoeus, 'typhoeus'],
patron: [:Patron, 'patron'],
rack: [:Rack, 'rack'],
httpclient: [:HTTPClient, 'httpclient']
rack: [:Rack, 'rack']

# This module marks an Adapter as supporting parallel requests.
module Parallelism
Expand Down
152 changes: 0 additions & 152 deletions lib/faraday/adapter/httpclient.rb

This file was deleted.

3 changes: 1 addition & 2 deletions lib/faraday/autoload.rb
Expand Up @@ -61,8 +61,7 @@ class Adapter
Typhoeus: 'typhoeus',
Patron: 'patron',
Test: 'test',
Rack: 'rack',
HTTPClient: 'httpclient'
Rack: 'rack'
end

# Request represents a single HTTP request for a Faraday adapter to make.
Expand Down

0 comments on commit 274f5fa

Please sign in to comment.