class VCR::Middleware::Faraday
yourself or configure {VCR::Configuration#hook_into} to hook into ‘:faraday`.
@note You can either insert this middleware into the Faraday middleware stack
Faraday.
Faraday middleware that VCR uses to record and replay HTTP requests made through
def call(env)
-
env
(Hash
) -- the Faraday request env hash
def call(env) return @app.call(env) if VCR.library_hooks.disabled?(:faraday) RequestHandler.new(@app, env).handle end
def close
def close @app.close if @app.respond_to?(:close) end
def initialize(app)
-
app
(#call
) -- the faraday app
def initialize(app) super @app = app end