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.
31 32 33 |
# File 'lib/typhoeus/adapters/faraday.rb', line 31 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.
42 43 44 45 46 |
# File 'lib/typhoeus/adapters/faraday.rb', line 42 def call(env) super perform_request env @app.call env end |