Class: Faraday::Adapter::Typhoeus
- Inherits:
-
Faraday::Adapter
- Object
- Faraday::Adapter
- Faraday::Adapter::Typhoeus
- Defined in:
- lib/typhoeus/adapters/faraday.rb
Overview
Adapter to use Faraday with Typhoeus.
Class Method Summary collapse
-
.setup_parallel_manager(options = {}) ⇒ Typhoeus::Hydra
Setup Hydra with provided options.
Instance Method Summary collapse
-
#call(env) ⇒ void
Hook into Faraday and perform the request with Typhoeus.
Class Method Details
.setup_parallel_manager(options = {}) ⇒ Typhoeus::Hydra
Setup Hydra with provided options.
45 46 47 |
# File 'lib/typhoeus/adapters/faraday.rb', line 45 def self.setup_parallel_manager( = {}) ::Typhoeus::Hydra.new() end |
Instance Method Details
#call(env) ⇒ void
This method returns an undefined value.
Hook into Faraday and perform the request with Typhoeus.
56 57 58 59 60 |
# File 'lib/typhoeus/adapters/faraday.rb', line 56 def call(env) super perform_request env @app.call env end |