Class | Faraday::Adapter::Typhoeus |
In: |
lib/typhoeus/adapters/faraday.rb
|
Parent: | Faraday::Adapter |
Adapter to use Faraday with Typhoeus.
@example Use Typhoeus.
require 'faraday' require 'typhoeus' require 'typhoeus/adapters/faraday' conn = Faraday.new(url: "www.example.com") do |faraday| faraday.adapter :typhoeus # You can include Typhoeus options to be used for every request # faraday.adapter :typhoeus, forbid_reuse: true, maxredirs: 1 end response = conn.get("/")